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

Side by Side Diff: ui/base/ime/input_method_chromeos.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_base_unittest.cc ('k') | ui/base/ime/input_method_chromeos.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 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_CHROMEOS_H_ 5 #ifndef UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_
6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ 6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 16 matching lines...) Expand all
27 explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate); 27 explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate);
28 ~InputMethodChromeOS() override; 28 ~InputMethodChromeOS() override;
29 29
30 // Overridden from InputMethod: 30 // Overridden from InputMethod:
31 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 31 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
32 NativeEventResult* result) override; 32 NativeEventResult* result) override;
33 void DispatchKeyEvent(ui::KeyEvent* event) override; 33 void DispatchKeyEvent(ui::KeyEvent* event) override;
34 void OnTextInputTypeChanged(const TextInputClient* client) override; 34 void OnTextInputTypeChanged(const TextInputClient* client) override;
35 void OnCaretBoundsChanged(const TextInputClient* client) override; 35 void OnCaretBoundsChanged(const TextInputClient* client) override;
36 void CancelComposition(const TextInputClient* client) override; 36 void CancelComposition(const TextInputClient* client) override;
37 void OnInputLocaleChanged() override;
38 std::string GetInputLocale() override;
39 bool IsCandidatePopupOpen() const override; 37 bool IsCandidatePopupOpen() const override;
40 38
41 protected: 39 protected:
42 // Converts |text| into CompositionText. 40 // Converts |text| into CompositionText.
43 void ExtractCompositionText(const CompositionText& text, 41 void ExtractCompositionText(const CompositionText& text,
44 uint32_t cursor_position, 42 uint32_t cursor_position,
45 CompositionText* out_composition) const; 43 CompositionText* out_composition) const;
46 44
47 // Process a key returned from the input method. 45 // Process a key returned from the input method.
48 virtual void ProcessKeyEventPostIME(ui::KeyEvent* event, 46 virtual void ProcessKeyEventPostIME(ui::KeyEvent* event,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 137
140 // Used for making callbacks. 138 // Used for making callbacks.
141 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; 139 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_;
142 140
143 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); 141 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS);
144 }; 142 };
145 143
146 } // namespace ui 144 } // namespace ui
147 145
148 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ 146 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_base_unittest.cc ('k') | ui/base/ime/input_method_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698