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

Side by Side Diff: ui/views/ime/input_method_bridge.cc

Issue 111373008: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | ui/views/ime/mock_input_method.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/views/ime/input_method_bridge.h" 5 #include "ui/views/ime/input_method_bridge.h"
6 6
7 #include "ui/base/ime/input_method.h" 7 #include "ui/base/ime/input_method.h"
8 #include "ui/base/ime/input_method_observer.h" 8 #include "ui/base/ime/input_method_observer.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if (client) 191 if (client)
192 client->ClearCompositionText(); 192 client->ClearCompositionText();
193 } 193 }
194 194
195 void InputMethodBridge::InsertText(const base::string16& text) { 195 void InputMethodBridge::InsertText(const base::string16& text) {
196 TextInputClient* client = GetTextInputClient(); 196 TextInputClient* client = GetTextInputClient();
197 if (client) 197 if (client)
198 client->InsertText(text); 198 client->InsertText(text);
199 } 199 }
200 200
201 void InputMethodBridge::InsertChar(char16 ch, int flags) { 201 void InputMethodBridge::InsertChar(base::char16 ch, int flags) {
202 TextInputClient* client = GetTextInputClient(); 202 TextInputClient* client = GetTextInputClient();
203 if (client) 203 if (client)
204 client->InsertChar(ch, flags); 204 client->InsertChar(ch, flags);
205 } 205 }
206 206
207 gfx::NativeWindow InputMethodBridge::GetAttachedWindow() const { 207 gfx::NativeWindow InputMethodBridge::GetAttachedWindow() const {
208 TextInputClient* client = GetTextInputClient(); 208 TextInputClient* client = GetTextInputClient();
209 return client ? 209 return client ?
210 client->GetAttachedWindow() : static_cast<gfx::NativeWindow>(NULL); 210 client->GetAttachedWindow() : static_cast<gfx::NativeWindow>(NULL);
211 } 211 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 OnTextInputTypeChanged(focused); 326 OnTextInputTypeChanged(focused);
327 OnCaretBoundsChanged(focused); 327 OnCaretBoundsChanged(focused);
328 } 328 }
329 329
330 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { 330 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const {
331 return host_; 331 return host_;
332 } 332 }
333 333
334 334
335 } // namespace views 335 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | ui/views/ime/mock_input_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698