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

Side by Side Diff: trunk/src/ui/base/ime/chromeos/ibus_bridge.h

Issue 130833002: Revert 243777 "Moves CandidateWindow model to ui/base/ime." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // TODO(nona): Rename this file to ime_bridge.h 4 // TODO(nona): Rename this file to ime_bridge.h
5 5
6 #ifndef UI_BASE_IME_CHROMEOS_IBUS_BRIDGE_H_ 6 #ifndef UI_BASE_IME_CHROMEOS_IBUS_BRIDGE_H_
7 #define UI_BASE_IME_CHROMEOS_IBUS_BRIDGE_H_ 7 #define UI_BASE_IME_CHROMEOS_IBUS_BRIDGE_H_
8 8
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "ui/base/ime/text_input_mode.h" 12 #include "ui/base/ime/text_input_mode.h"
13 #include "ui/base/ime/text_input_type.h" 13 #include "ui/base/ime/text_input_type.h"
14 #include "ui/base/ui_base_export.h" 14 #include "ui/base/ui_base_export.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 class Rect; 17 class Rect;
18 } // namespace gfx 18 } // namespace gfx
19 19
20 namespace ui { 20 namespace ui {
21 class CandidateWindow;
22 class KeyEvent; 21 class KeyEvent;
23 } // namespace ui 22 } // namespace ui
24 23
25 namespace chromeos { 24 namespace chromeos {
25 namespace input_method {
26 class CandidateWindow;
27 } // namespace input_method
26 28
27 class IBusText; 29 class IBusText;
28 30
29 class UI_BASE_EXPORT IBusInputContextHandlerInterface { 31 class UI_BASE_EXPORT IBusInputContextHandlerInterface {
30 public: 32 public:
31 // Called when the engine commit a text. 33 // Called when the engine commit a text.
32 virtual void CommitText(const std::string& text) = 0; 34 virtual void CommitText(const std::string& text) = 0;
33 35
34 // Called when the engine update preedit stroing. 36 // Called when the engine update preedit stroing.
35 virtual void UpdatePreeditText(const IBusText& text, 37 virtual void UpdatePreeditText(const IBusText& text,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 protected: 104 protected:
103 IBusEngineHandlerInterface() {} 105 IBusEngineHandlerInterface() {}
104 }; 106 };
105 107
106 // A interface to handle the candidate window related method call. 108 // A interface to handle the candidate window related method call.
107 class UI_BASE_EXPORT IBusPanelCandidateWindowHandlerInterface { 109 class UI_BASE_EXPORT IBusPanelCandidateWindowHandlerInterface {
108 public: 110 public:
109 virtual ~IBusPanelCandidateWindowHandlerInterface() {} 111 virtual ~IBusPanelCandidateWindowHandlerInterface() {}
110 112
111 // Called when the IME updates the lookup table. 113 // Called when the IME updates the lookup table.
112 virtual void UpdateLookupTable(const ui::CandidateWindow& candidate_window, 114 virtual void UpdateLookupTable(
113 bool visible) = 0; 115 const input_method::CandidateWindow& candidate_window,
116 bool visible) = 0;
114 117
115 // Called when the IME updates the preedit text. The |text| is given in 118 // Called when the IME updates the preedit text. The |text| is given in
116 // UTF-8 encoding. 119 // UTF-8 encoding.
117 virtual void UpdatePreeditText(const std::string& text, uint32 cursor_pos, 120 virtual void UpdatePreeditText(const std::string& text, uint32 cursor_pos,
118 bool visible) = 0; 121 bool visible) = 0;
119 122
120 // Called when the application changes its caret bounds. 123 // Called when the application changes its caret bounds.
121 virtual void SetCursorBounds(const gfx::Rect& cursor_bounds, 124 virtual void SetCursorBounds(const gfx::Rect& cursor_bounds,
122 const gfx::Rect& composition_head) = 0; 125 const gfx::Rect& composition_head) = 0;
123 126
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 protected: 195 protected:
193 IBusBridge(); 196 IBusBridge();
194 197
195 private: 198 private:
196 DISALLOW_COPY_AND_ASSIGN(IBusBridge); 199 DISALLOW_COPY_AND_ASSIGN(IBusBridge);
197 }; 200 };
198 201
199 } // namespace chromeos 202 } // namespace chromeos
200 203
201 #endif // UI_BASE_IME_CHROMEOS_IBUS_BRIDGE_H_ 204 #endif // UI_BASE_IME_CHROMEOS_IBUS_BRIDGE_H_
OLDNEW
« no previous file with comments | « trunk/src/ui/base/ime/candidate_window_unittest.cc ('k') | trunk/src/ui/base/ime/chromeos/mock_ime_candidate_window_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698