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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.h

Issue 1523593002: Add an option in language settings for activating the IME menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
7 7
8 #include "chrome/browser/chromeos/input_method/input_method_util.h" 8 #include "chrome/browser/chromeos/input_method/input_method_util.h"
9 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" 9 #include "ui/base/ime/chromeos/component_extension_ime_manager.h"
10 #include "ui/base/ime/chromeos/fake_ime_keyboard.h" 10 #include "ui/base/ime/chromeos/fake_ime_keyboard.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 }; 69 };
70 70
71 MockInputMethodManager(); 71 MockInputMethodManager();
72 ~MockInputMethodManager() override; 72 ~MockInputMethodManager() override;
73 73
74 // InputMethodManager override: 74 // InputMethodManager override:
75 UISessionState GetUISessionState() override; 75 UISessionState GetUISessionState() override;
76 void AddObserver(InputMethodManager::Observer* observer) override; 76 void AddObserver(InputMethodManager::Observer* observer) override;
77 void AddCandidateWindowObserver( 77 void AddCandidateWindowObserver(
78 InputMethodManager::CandidateWindowObserver* observer) override; 78 InputMethodManager::CandidateWindowObserver* observer) override;
79 void AddImeMenuObserver(
80 InputMethodManager::ImeMenuObserver* observer) override;
79 void RemoveObserver(InputMethodManager::Observer* observer) override; 81 void RemoveObserver(InputMethodManager::Observer* observer) override;
80 void RemoveCandidateWindowObserver( 82 void RemoveCandidateWindowObserver(
81 InputMethodManager::CandidateWindowObserver* observer) override; 83 InputMethodManager::CandidateWindowObserver* observer) override;
84 void RemoveImeMenuObserver(
85 InputMethodManager::ImeMenuObserver* observer) override;
82 scoped_ptr<InputMethodDescriptors> GetSupportedInputMethods() const override; 86 scoped_ptr<InputMethodDescriptors> GetSupportedInputMethods() const override;
83 void ActivateInputMethodMenuItem(const std::string& key) override; 87 void ActivateInputMethodMenuItem(const std::string& key) override;
84 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; 88 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override;
85 bool IsAltGrUsedByCurrentInputMethod() const override; 89 bool IsAltGrUsedByCurrentInputMethod() const override;
86 ImeKeyboard* GetImeKeyboard() override; 90 ImeKeyboard* GetImeKeyboard() override;
87 InputMethodUtil* GetInputMethodUtil() override; 91 InputMethodUtil* GetInputMethodUtil() override;
88 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; 92 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override;
89 bool IsLoginKeyboard(const std::string& layout) const override; 93 bool IsLoginKeyboard(const std::string& layout) const override;
90 bool MigrateInputMethods(std::vector<std::string>* input_method_ids) override; 94 bool MigrateInputMethods(std::vector<std::string>* input_method_ids) override;
91 scoped_refptr<InputMethodManager::State> CreateNewState( 95 scoped_refptr<InputMethodManager::State> CreateNewState(
92 Profile* profile) override; 96 Profile* profile) override;
93 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override; 97 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override;
94 void SetState(scoped_refptr<InputMethodManager::State> state) override; 98 void SetState(scoped_refptr<InputMethodManager::State> state) override;
99 void ImeMenuActivated() override;
100 void ImeMenuDeactivated() override;
95 101
96 // Sets an input method ID which will be returned by GetCurrentInputMethod(). 102 // Sets an input method ID which will be returned by GetCurrentInputMethod().
97 void SetCurrentInputMethodId(const std::string& input_method_id); 103 void SetCurrentInputMethodId(const std::string& input_method_id);
98 104
99 void SetComponentExtensionIMEManager( 105 void SetComponentExtensionIMEManager(
100 scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager); 106 scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager);
101 107
102 // Set values that will be provided to the InputMethodUtil. 108 // Set values that will be provided to the InputMethodUtil.
103 void set_application_locale(const std::string& value); 109 void set_application_locale(const std::string& value);
104 110
(...skipping 14 matching lines...) Expand all
119 bool mod3_used_; 125 bool mod3_used_;
120 scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager_; 126 scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager_;
121 127
122 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 128 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
123 }; 129 };
124 130
125 } // namespace input_method 131 } // namespace input_method
126 } // namespace chromeos 132 } // namespace chromeos
127 133
128 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 134 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698