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

Side by Side Diff: ui/base/ime/input_method_mac.h

Issue 2298123003: Using input language instead of the application locale to determine the Omnibox's text input type o… (Closed)
Patch Set: fix compiling errors in mus. Created 4 years, 3 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
« no previous file with comments | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/base/ime/input_method_mac.mm » ('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 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_INPUT_METHOD_MAC_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_MAC_H_
6 #define UI_BASE_IME_INPUT_METHOD_MAC_H_ 6 #define UI_BASE_IME_INPUT_METHOD_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/base/ime/input_method_base.h" 9 #include "ui/base/ime/input_method_base.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 // A ui::InputMethod implementation for Mac. 13 // A ui::InputMethod implementation for Mac.
14 // On the Mac, key events don't pass through InputMethod. 14 // On the Mac, key events don't pass through InputMethod.
15 // Instead, NSTextInputClient calls are bridged to the currently focused 15 // Instead, NSTextInputClient calls are bridged to the currently focused
16 // ui::TextInputClient object. 16 // ui::TextInputClient object.
17 class UI_BASE_IME_EXPORT InputMethodMac : public InputMethodBase { 17 class UI_BASE_IME_EXPORT InputMethodMac : public InputMethodBase {
18 public: 18 public:
19 explicit InputMethodMac(internal::InputMethodDelegate* delegate); 19 explicit InputMethodMac(internal::InputMethodDelegate* delegate);
20 ~InputMethodMac() override; 20 ~InputMethodMac() override;
21 21
22 // Overriden from InputMethod. 22 // Overriden from InputMethod.
23 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 23 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
24 NativeEventResult* result) override; 24 NativeEventResult* result) override;
25 void DispatchKeyEvent(ui::KeyEvent* event) override; 25 void DispatchKeyEvent(ui::KeyEvent* event) override;
26 void OnCaretBoundsChanged(const TextInputClient* client) override; 26 void OnCaretBoundsChanged(const TextInputClient* client) override;
27 void CancelComposition(const TextInputClient* client) override; 27 void CancelComposition(const TextInputClient* client) override;
28 void OnInputLocaleChanged() override;
29 std::string GetInputLocale() override;
30 bool IsCandidatePopupOpen() const override; 28 bool IsCandidatePopupOpen() const override;
31 29
32 private: 30 private:
33 DISALLOW_COPY_AND_ASSIGN(InputMethodMac); 31 DISALLOW_COPY_AND_ASSIGN(InputMethodMac);
34 }; 32 };
35 33
36 } // namespace ui 34 } // namespace ui
37 35
38 #endif // UI_BASE_IME_INPUT_METHOD_MAC_H_ 36 #endif // UI_BASE_IME_INPUT_METHOD_MAC_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_chromeos_unittest.cc ('k') | ui/base/ime/input_method_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698