OLD | NEW |
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 | 4 |
5 #include "ui/base/ime/remote_input_method_win.h" | 5 #include "ui/base/ime/remote_input_method_win.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/win/metro.h" | 10 #include "base/win/metro.h" |
11 #include "base/win/scoped_handle.h" | 11 #include "base/win/scoped_handle.h" |
12 #include "ui/base/ime/input_method.h" | 12 #include "ui/base/ime/input_method.h" |
13 #include "ui/base/ime/input_method_delegate.h" | 13 #include "ui/base/ime/input_method_delegate.h" |
14 #include "ui/base/ime/input_method_observer.h" | 14 #include "ui/base/ime/input_method_observer.h" |
15 #include "ui/base/ime/remote_input_method_delegate_win.h" | 15 #include "ui/base/ime/remote_input_method_delegate_win.h" |
16 #include "ui/base/ime/text_input_client.h" | 16 #include "ui/base/ime/text_input_client.h" |
17 #include "ui/base/ime/win/tsf_input_scope.h" | 17 #include "ui/base/ime/win/tsf_input_scope.h" |
18 #include "ui/base/ui_base_switches.h" | 18 #include "ui/base/ui_base_switches.h" |
19 #include "ui/events/event.h" | 19 #include "ui/events/event.h" |
20 #include "ui/events/event_utils.h" | 20 #include "ui/events/event_utils.h" |
21 #include "ui/gfx/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
22 | 22 |
23 namespace ui { | 23 namespace ui { |
24 namespace { | 24 namespace { |
25 | 25 |
26 const LANGID kFallbackLangID = | 26 const LANGID kFallbackLangID = |
27 MAKELANGID(LANG_NEUTRAL, SUBLANG_UI_CUSTOM_DEFAULT); | 27 MAKELANGID(LANG_NEUTRAL, SUBLANG_UI_CUSTOM_DEFAULT); |
28 | 28 |
29 InputMethod* g_public_interface_ = NULL; | 29 InputMethod* g_public_interface_ = NULL; |
30 RemoteInputMethodPrivateWin* g_private_interface_ = NULL; | 30 RemoteInputMethodPrivateWin* g_private_interface_ = NULL; |
31 | 31 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); | 395 return make_scoped_ptr(new RemoteInputMethodWin(delegate)); |
396 } | 396 } |
397 | 397 |
398 // static | 398 // static |
399 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( | 399 RemoteInputMethodPrivateWin* RemoteInputMethodPrivateWin::Get( |
400 InputMethod* input_method) { | 400 InputMethod* input_method) { |
401 return GetPrivate(input_method); | 401 return GetPrivate(input_method); |
402 } | 402 } |
403 | 403 |
404 } // namespace ui | 404 } // namespace ui |
OLD | NEW |