Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: ui/base/ime/ime_engine_observer.h

Issue 1590863002: Move the local struct definitions off ui/base/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/ime/ime_engine_handler_interface.cc ('k') | ui/base/ime/ui_base_ime.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/ime_engine_observer.h
diff --git a/ui/base/ime/ime_engine_observer.h b/ui/base/ime/ime_engine_observer.h
deleted file mode 100644
index 7a2bf9d2682c2a15c66482abb245dd12063a1619..0000000000000000000000000000000000000000
--- a/ui/base/ime/ime_engine_observer.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef UI_BASE_IME_IME_ENGINE_OBSERVER_H_
-#define UI_BASE_IME_IME_ENGINE_OBSERVER_H_
-
-#include "build/build_config.h"
-#include "ui/base/ime/ime_engine_handler_interface.h"
-
-namespace ui {
-
-class IMEEngineObserver {
- public:
- virtual ~IMEEngineObserver() {}
-
- // Called when the IME becomes the active IME.
- virtual void OnActivate(const std::string& engine_id) = 0;
-
- // Called when a text field gains focus, and will be sending key events.
- virtual void OnFocus(
- const IMEEngineHandlerInterface::InputContext& context) = 0;
-
- // Called when a text field loses focus, and will no longer generate events.
- virtual void OnBlur(int context_id) = 0;
-
- // Called when the user pressed a key with a text field focused.
- virtual void OnKeyEvent(
- const std::string& engine_id,
- const IMEEngineHandlerInterface::KeyboardEvent& event,
- IMEEngineHandlerInterface::KeyEventDoneCallback& key_data) = 0;
-
- // Called when Chrome terminates on-going text input session.
- virtual void OnReset(const std::string& engine_id) = 0;
-
- // Called when the IME is no longer active.
- virtual void OnDeactivated(const std::string& engine_id) = 0;
-
- // Called when composition bounds are changed.
- virtual void OnCompositionBoundsChanged(
- const std::vector<gfx::Rect>& bounds) = 0;
-
- // Returns whether the observer is interested in key events.
- virtual bool IsInterestedInKeyEvent() const = 0;
-
- // Called when a surrounding text is changed.
- virtual void OnSurroundingTextChanged(const std::string& engine_id,
- const std::string& text,
- int cursor_pos,
- int anchor_pos,
- int offset_pos) = 0;
-
-// ChromeOS only APIs.
-#if defined(OS_CHROMEOS)
-
- enum MouseButtonEvent {
- MOUSE_BUTTON_LEFT,
- MOUSE_BUTTON_RIGHT,
- MOUSE_BUTTON_MIDDLE,
- };
-
- // Called when an InputContext's properties change while it is focused.
- virtual void OnInputContextUpdate(
- const IMEEngineHandlerInterface::InputContext& context) = 0;
-
-
-
- // Called when the user clicks on an item in the candidate list.
- virtual void OnCandidateClicked(const std::string& engine_id,
- int candidate_id,
- MouseButtonEvent button) = 0;
-
- // Called when a menu item for this IME is interacted with.
- virtual void OnMenuItemActivated(const std::string& engine_id,
- const std::string& menu_id) = 0;
-#endif
-};
-
-} // namespace ui
-
-#endif // UI_BASE_IME_IME_ENGINE_OBSERVER_H_
« no previous file with comments | « ui/base/ime/ime_engine_handler_interface.cc ('k') | ui/base/ime/ui_base_ime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698