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

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

Issue 7508014: Add member variables to VirtualKeyboardSelector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rewrote CheckUrls 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
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 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 5 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include <glib.h> 9 #include <glib.h>
10 10
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 const input_method::HandwritingStroke& stroke) { 296 const input_method::HandwritingStroke& stroke) {
297 ibus_controller_->SendHandwritingStroke(stroke); 297 ibus_controller_->SendHandwritingStroke(stroke);
298 } 298 }
299 299
300 virtual void CancelHandwritingStrokes(int stroke_count) { 300 virtual void CancelHandwritingStrokes(int stroke_count) {
301 // TODO(yusukes): Rename the libcros function to CancelHandwritingStrokes. 301 // TODO(yusukes): Rename the libcros function to CancelHandwritingStrokes.
302 ibus_controller_->CancelHandwriting(stroke_count); 302 ibus_controller_->CancelHandwriting(stroke_count);
303 } 303 }
304 304
305 virtual void RegisterVirtualKeyboard(const GURL& launch_url, 305 virtual void RegisterVirtualKeyboard(const GURL& launch_url,
306 const std::string& name,
306 const std::set<std::string>& layouts, 307 const std::set<std::string>& layouts,
307 bool is_system) { 308 bool is_system) {
308 virtual_keyboard_selector_.AddVirtualKeyboard(launch_url, 309 virtual_keyboard_selector_.AddVirtualKeyboard(launch_url,
310 name,
309 layouts, 311 layouts,
310 is_system); 312 is_system);
311 } 313 }
312 314
315 virtual const std::map<GURL, const VirtualKeyboard*>&
316 GetUrlToKeyboardMapping() const {
317 return virtual_keyboard_selector_.url_to_keyboard();
318 }
319
320 virtual const std::multimap<std::string, const VirtualKeyboard*>&
321 GetLayoutNameToKeyboardMapping() const {
322 return virtual_keyboard_selector_.layout_to_keyboard();
323 }
324
313 virtual bool SetVirtualKeyboardPreference(const std::string& input_method_id, 325 virtual bool SetVirtualKeyboardPreference(const std::string& input_method_id,
314 const GURL& extention_url) { 326 const GURL& extention_url) {
315 return virtual_keyboard_selector_.SetUserPreference( 327 return virtual_keyboard_selector_.SetUserPreference(
316 input_method_id, extention_url); 328 input_method_id, extention_url);
317 } 329 }
318 330
319 virtual void ClearAllVirtualKeyboardPreferences() { 331 virtual void ClearAllVirtualKeyboardPreferences() {
320 return virtual_keyboard_selector_.ClearAllUserPreferences(); 332 return virtual_keyboard_selector_.ClearAllUserPreferences();
321 } 333 }
322 334
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 return InputMethodManagerImpl::GetInstance(); 981 return InputMethodManagerImpl::GetInstance();
970 } 982 }
971 983
972 } // namespace input_method 984 } // namespace input_method
973 } // namespace chromeos 985 } // namespace chromeos
974 986
975 // Allows InvokeLater without adding refcounting. This class is a Singleton and 987 // Allows InvokeLater without adding refcounting. This class is a Singleton and
976 // won't be deleted until it's last InvokeLater is run. 988 // won't be deleted until it's last InvokeLater is run.
977 DISABLE_RUNNABLE_METHOD_REFCOUNT( 989 DISABLE_RUNNABLE_METHOD_REFCOUNT(
978 chromeos::input_method::InputMethodManagerImpl); 990 chromeos::input_method::InputMethodManagerImpl);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698