blob: d16c4b23a4c16a217763865bc580ebf6bd4a1afd [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/vr/model/text_input_info.h"
namespace vr {
// The keyboard communicates state changes to the VR UI via this interface. Note
// that we have this interface to restrict the UI API to keyboard-specific
// callback functions because the keyboard delegate doesn't need access to all
// of the UI.
class KeyboardUiInterface {
virtual ~KeyboardUiInterface() {}
virtual void OnInputEdited(const TextInputInfo& info) = 0;
virtual void OnInputCommitted(const TextInputInfo& info) = 0;
virtual void OnKeyboardHidden() = 0;
} // namespace vr