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

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

Issue 178343005: [IME] migrate the xkb ID to extension based xkb ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests failures for when the flag is true and false. Created 6 years, 9 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 | Annotate | Revision Log
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/fake_xkeyboard.h" 10 #include "chromeos/ime/fake_xkeyboard.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual bool SwitchToNextInputMethod() OVERRIDE; 56 virtual bool SwitchToNextInputMethod() OVERRIDE;
57 virtual bool SwitchToPreviousInputMethod( 57 virtual bool SwitchToPreviousInputMethod(
58 const ui::Accelerator& accelerator) OVERRIDE; 58 const ui::Accelerator& accelerator) OVERRIDE;
59 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; 59 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE;
60 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; 60 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE;
61 virtual XKeyboard* GetXKeyboard() OVERRIDE; 61 virtual XKeyboard* GetXKeyboard() OVERRIDE;
62 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; 62 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE;
63 virtual ComponentExtensionIMEManager* 63 virtual ComponentExtensionIMEManager*
64 GetComponentExtensionIMEManager() OVERRIDE; 64 GetComponentExtensionIMEManager() OVERRIDE;
65 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; 65 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE;
66 virtual bool MigrateXkbInputMethods(
67 std::vector<std::string>* input_method_ids) OVERRIDE;
66 68
67 // Sets an input method ID which will be returned by GetCurrentInputMethod(). 69 // Sets an input method ID which will be returned by GetCurrentInputMethod().
68 void SetCurrentInputMethodId(const std::string& input_method_id) { 70 void SetCurrentInputMethodId(const std::string& input_method_id) {
69 current_input_method_id_ = input_method_id; 71 current_input_method_id_ = input_method_id;
70 } 72 }
71 73
72 // Set values that will be provided to the InputMethodUtil. 74 // Set values that will be provided to the InputMethodUtil.
73 void set_application_locale(const std::string& value); 75 void set_application_locale(const std::string& value);
74 76
75 // TODO(yusukes): Add more variables for counting the numbers of the API calls 77 // TODO(yusukes): Add more variables for counting the numbers of the API calls
(...skipping 12 matching lines...) Expand all
88 // The active input method ids cache (actually default only) 90 // The active input method ids cache (actually default only)
89 std::vector<std::string> active_input_method_ids_; 91 std::vector<std::string> active_input_method_ids_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 93 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
92 }; 94 };
93 95
94 } // namespace input_method 96 } // namespace input_method
95 } // namespace chromeos 97 } // namespace chromeos
96 98
97 #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