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

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

Issue 7493077: Add pref entry for virtual keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // TODO(satorux): Move this from 'cros' directory to 'input_method' 5 // TODO(satorux): Move this from 'cros' directory to 'input_method'
6 // directory. 6 // directory.
7 7
8 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 8 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
9 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 9 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
10 #pragma once 10 #pragma once
11 11
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <utility> 14 #include <utility>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/timer.h" 19 #include "base/timer.h"
20 #include "chrome/browser/chromeos/input_method/ibus_controller.h" 20 #include "chrome/browser/chromeos/input_method/ibus_controller.h"
21 21
22 class GURL; 22 class GURL;
23 23
24 namespace chromeos { 24 namespace chromeos {
25 namespace input_method { 25 namespace input_method {
26 26
27 class VirtualKeyboard; 27 class VirtualKeyboard;
28 28
29
30 // This class manages input methodshandles. Classes can add themselves as 29 // This class manages input methodshandles. Classes can add themselves as
31 // observers. Clients can get an instance of this library class by: 30 // observers. Clients can get an instance of this library class by:
32 // InputMethodManager::GetInstance(). 31 // InputMethodManager::GetInstance().
33 class InputMethodManager { 32 class InputMethodManager {
34 public: 33 public:
35 class Observer { 34 class Observer {
36 public: 35 public:
37 virtual ~Observer() {} 36 virtual ~Observer() {}
38 37
39 // Called when the current input method is changed. 38 // Called when the current input method is changed.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 162
164 // Registers a new virtual keyboard for |layouts|. Set |is_system| true when 163 // Registers a new virtual keyboard for |layouts|. Set |is_system| true when
165 // the keyboard is provided as a content extension. System virtual keyboards 164 // the keyboard is provided as a content extension. System virtual keyboards
166 // have lower priority than non-system ones. See virtual_keyboard_selector.h 165 // have lower priority than non-system ones. See virtual_keyboard_selector.h
167 // for details. 166 // for details.
168 // TODO(yusukes): Add UnregisterVirtualKeyboard function as well. 167 // TODO(yusukes): Add UnregisterVirtualKeyboard function as well.
169 virtual void RegisterVirtualKeyboard(const GURL& launch_url, 168 virtual void RegisterVirtualKeyboard(const GURL& launch_url,
170 const std::set<std::string>& layouts, 169 const std::set<std::string>& layouts,
171 bool is_system) = 0; 170 bool is_system) = 0;
172 171
172 // Sets user preference on virtual keyboard selection.
173 // See virtual_keyboard_selector.h for details.
174 virtual bool SetVirtualKeyboardPreference(const std::string& input_method_id,
175 const GURL& extention_url) = 0;
176
177 // Clears all preferences on virtual keyboard selection.
178 // See virtual_keyboard_selector.h for details.
179 virtual void ClearAllVirtualKeyboardPreferences() = 0;
180
173 virtual input_method::InputMethodDescriptor previous_input_method() const = 0; 181 virtual input_method::InputMethodDescriptor previous_input_method() const = 0;
174 virtual input_method::InputMethodDescriptor current_input_method() const = 0; 182 virtual input_method::InputMethodDescriptor current_input_method() const = 0;
175 183
176 virtual const input_method::ImePropertyList& current_ime_properties() 184 virtual const input_method::ImePropertyList& current_ime_properties()
177 const = 0; 185 const = 0;
178 }; 186 };
179 187
180 } // namespace input_method 188 } // namespace input_method
181 } // namespace chromeos 189 } // namespace chromeos
182 190
183 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ 191 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698