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

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

Issue 119133003: Make InputMethodEngine manage its descriptor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 "chrome/browser/chromeos/input_method/input_method_util.h" 8 #include "chrome/browser/chromeos/input_method/input_method_util.h"
9 #include "chromeos/ime/fake_input_method_delegate.h" 9 #include "chromeos/ime/fake_input_method_delegate.h"
10 #include "chromeos/ime/input_method_manager.h" 10 #include "chromeos/ime/input_method_manager.h"
(...skipping 26 matching lines...) Expand all
37 virtual void EnableLayouts(const std::string& language_code, 37 virtual void EnableLayouts(const std::string& language_code,
38 const std::string& initial_layout) OVERRIDE; 38 const std::string& initial_layout) OVERRIDE;
39 virtual bool EnableInputMethods( 39 virtual bool EnableInputMethods(
40 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; 40 const std::vector<std::string>& new_active_input_method_ids) OVERRIDE;
41 virtual bool EnableInputMethod( 41 virtual bool EnableInputMethod(
42 const std::string& new_active_input_method_id) OVERRIDE; 42 const std::string& new_active_input_method_id) OVERRIDE;
43 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE; 43 virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE;
44 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE; 44 virtual void ActivateInputMethodProperty(const std::string& key) OVERRIDE;
45 virtual void AddInputMethodExtension( 45 virtual void AddInputMethodExtension(
46 const std::string& id, 46 const std::string& id,
47 const std::string& name,
48 const std::vector<std::string>& layouts,
49 const std::vector<std::string>& languages,
50 const GURL& options_url,
51 const GURL& inputview_url,
52 InputMethodEngineInterface* instance) OVERRIDE; 47 InputMethodEngineInterface* instance) OVERRIDE;
53 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE; 48 virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE;
54 virtual void GetInputMethodExtensions( 49 virtual void GetInputMethodExtensions(
55 InputMethodDescriptors* result) OVERRIDE; 50 InputMethodDescriptors* result) OVERRIDE;
56 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE; 51 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE;
57 virtual void SetInputMethodDefault() OVERRIDE; 52 virtual void SetInputMethodDefault() OVERRIDE;
58 virtual bool SwitchToNextInputMethod() OVERRIDE; 53 virtual bool SwitchToNextInputMethod() OVERRIDE;
59 virtual bool SwitchToPreviousInputMethod( 54 virtual bool SwitchToPreviousInputMethod(
60 const ui::Accelerator& accelerator) OVERRIDE; 55 const ui::Accelerator& accelerator) OVERRIDE;
61 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 56 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // The active input method ids cache (actually default only) 90 // The active input method ids cache (actually default only)
96 std::vector<std::string> active_input_method_ids_; 91 std::vector<std::string> active_input_method_ids_;
97 92
98 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 93 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
99 }; 94 };
100 95
101 } // namespace input_method 96 } // namespace input_method
102 } // namespace chromeos 97 } // namespace chromeos
103 98
104 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698