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

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

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

Powered by Google App Engine
This is Rietveld 408576698