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

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

Issue 2298123003: Using input language instead of the application locale to determine the Omnibox's text input type o… (Closed)
Patch Set: ..... 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
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 #ifndef UI_BASE_IME_MOCK_INPUT_METHOD_H_ 5 #ifndef UI_BASE_IME_MOCK_INPUT_METHOD_H_
6 #define UI_BASE_IME_MOCK_INPUT_METHOD_H_ 6 #define UI_BASE_IME_MOCK_INPUT_METHOD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 25 matching lines...) Expand all
36 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, 36 bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
37 NativeEventResult* result) override; 37 NativeEventResult* result) override;
38 void SetFocusedTextInputClient(TextInputClient* client) override; 38 void SetFocusedTextInputClient(TextInputClient* client) override;
39 void DetachTextInputClient(TextInputClient* client) override; 39 void DetachTextInputClient(TextInputClient* client) override;
40 TextInputClient* GetTextInputClient() const override; 40 TextInputClient* GetTextInputClient() const override;
41 void DispatchKeyEvent(ui::KeyEvent* event) override; 41 void DispatchKeyEvent(ui::KeyEvent* event) override;
42 void OnTextInputTypeChanged(const TextInputClient* client) override; 42 void OnTextInputTypeChanged(const TextInputClient* client) override;
43 void OnCaretBoundsChanged(const TextInputClient* client) override; 43 void OnCaretBoundsChanged(const TextInputClient* client) override;
44 void CancelComposition(const TextInputClient* client) override; 44 void CancelComposition(const TextInputClient* client) override;
45 void OnInputLocaleChanged() override; 45 void OnInputLocaleChanged() override;
46 std::string GetInputLocale() override; 46 bool IsInputLocaleCJK() const override;
47 TextInputType GetTextInputType() const override; 47 TextInputType GetTextInputType() const override;
48 TextInputMode GetTextInputMode() const override; 48 TextInputMode GetTextInputMode() const override;
49 int GetTextInputFlags() const override; 49 int GetTextInputFlags() const override;
50 bool CanComposeInline() const override; 50 bool CanComposeInline() const override;
51 bool IsCandidatePopupOpen() const override; 51 bool IsCandidatePopupOpen() const override;
52 void ShowImeIfNeeded() override; 52 void ShowImeIfNeeded() override;
53 void AddObserver(InputMethodObserver* observer) override; 53 void AddObserver(InputMethodObserver* observer) override;
54 void RemoveObserver(InputMethodObserver* observer) override; 54 void RemoveObserver(InputMethodObserver* observer) override;
55 55
56 private: 56 private:
57 // InputMethod: 57 // InputMethod:
58 const std::vector<std::unique_ptr<ui::KeyEvent>>& GetKeyEventsForTesting() 58 const std::vector<std::unique_ptr<ui::KeyEvent>>& GetKeyEventsForTesting()
59 override; 59 override;
60 60
61 TextInputClient* text_input_client_; 61 TextInputClient* text_input_client_;
62 base::ObserverList<InputMethodObserver> observer_list_; 62 base::ObserverList<InputMethodObserver> observer_list_;
63 internal::InputMethodDelegate* delegate_; 63 internal::InputMethodDelegate* delegate_;
64 64
65 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_; 65 std::vector<std::unique_ptr<ui::KeyEvent>> key_events_for_testing_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(MockInputMethod); 67 DISALLOW_COPY_AND_ASSIGN(MockInputMethod);
68 }; 68 };
69 69
70 } // namespace ui 70 } // namespace ui
71 71
72 #endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_ 72 #endif // UI_BASE_IME_MOCK_INPUT_METHOD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698