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

Side by Side Diff: ui/base/ime/chromeos/ime_bridge.h

Issue 162723003: Migrate CandidateWindow::Entry to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browsertest compilation Created 6 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 4
5 #ifndef UI_BASE_IME_CHROMEOS_IME_BRIDGE_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_IME_BRIDGE_H_
6 #define UI_BASE_IME_CHROMEOS_IME_BRIDGE_H_ 6 #define UI_BASE_IME_CHROMEOS_IME_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/strings/string16.h"
11 #include "ui/base/ime/text_input_mode.h" 12 #include "ui/base/ime/text_input_mode.h"
12 #include "ui/base/ime/text_input_type.h" 13 #include "ui/base/ime/text_input_type.h"
13 #include "ui/base/ui_base_export.h" 14 #include "ui/base/ui_base_export.h"
14 15
15 namespace gfx { 16 namespace gfx {
16 class Rect; 17 class Rect;
17 } // namespace gfx 18 } // namespace gfx
18 19
19 namespace ui { 20 namespace ui {
20 class CandidateWindow; 21 class CandidateWindow;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // A interface to handle the candidate window related method call. 106 // A interface to handle the candidate window related method call.
106 class UI_BASE_EXPORT IBusPanelCandidateWindowHandlerInterface { 107 class UI_BASE_EXPORT IBusPanelCandidateWindowHandlerInterface {
107 public: 108 public:
108 virtual ~IBusPanelCandidateWindowHandlerInterface() {} 109 virtual ~IBusPanelCandidateWindowHandlerInterface() {}
109 110
110 // Called when the IME updates the lookup table. 111 // Called when the IME updates the lookup table.
111 virtual void UpdateLookupTable(const ui::CandidateWindow& candidate_window, 112 virtual void UpdateLookupTable(const ui::CandidateWindow& candidate_window,
112 bool visible) = 0; 113 bool visible) = 0;
113 114
114 // Called when the IME updates the preedit text. The |text| is given in 115 // Called when the IME updates the preedit text. The |text| is given in
115 // UTF-8 encoding. 116 // UTF-16 encoding.
116 virtual void UpdatePreeditText(const std::string& text, uint32 cursor_pos, 117 virtual void UpdatePreeditText(const base::string16& text,
118 uint32 cursor_pos,
117 bool visible) = 0; 119 bool visible) = 0;
118 120
119 // Called when the application changes its caret bounds. 121 // Called when the application changes its caret bounds.
120 virtual void SetCursorBounds(const gfx::Rect& cursor_bounds, 122 virtual void SetCursorBounds(const gfx::Rect& cursor_bounds,
121 const gfx::Rect& composition_head) = 0; 123 const gfx::Rect& composition_head) = 0;
122 124
123 // Called when the text field's focus state is changed. 125 // Called when the text field's focus state is changed.
124 // |is_focused| is true when the text field gains the focus. 126 // |is_focused| is true when the text field gains the focus.
125 virtual void FocusStateChanged(bool is_focused) {} 127 virtual void FocusStateChanged(bool is_focused) {}
126 128
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 protected: 193 protected:
192 IMEBridge(); 194 IMEBridge();
193 195
194 private: 196 private:
195 DISALLOW_COPY_AND_ASSIGN(IMEBridge); 197 DISALLOW_COPY_AND_ASSIGN(IMEBridge);
196 }; 198 };
197 199
198 } // namespace chromeos 200 } // namespace chromeos
199 201
200 #endif // UI_BASE_IME_CHROMEOS_IME_BRIDGE_H_ 202 #endif // UI_BASE_IME_CHROMEOS_IME_BRIDGE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/candidate_window_unittest.cc ('k') | 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