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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_handler2.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Initialize -> InitializeHandler, SendPageValues -> InitializePage Created 8 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_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDL ER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDL ER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDL ER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HANDL ER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 17 matching lines...) Expand all
28 28
29 // A class which provides information to virtual_keyboard.js. 29 // A class which provides information to virtual_keyboard.js.
30 class VirtualKeyboardManagerHandler : public OptionsPageUIHandler { 30 class VirtualKeyboardManagerHandler : public OptionsPageUIHandler {
31 public: 31 public:
32 VirtualKeyboardManagerHandler(); 32 VirtualKeyboardManagerHandler();
33 virtual ~VirtualKeyboardManagerHandler(); 33 virtual ~VirtualKeyboardManagerHandler();
34 34
35 // OptionsPageUIHandler implementation. 35 // OptionsPageUIHandler implementation.
36 virtual void GetLocalizedValues( 36 virtual void GetLocalizedValues(
37 base::DictionaryValue* localized_strings) OVERRIDE; 37 base::DictionaryValue* localized_strings) OVERRIDE;
38 virtual void Initialize() OVERRIDE; 38 virtual void InitializeHandler() OVERRIDE;
39 virtual void RegisterMessages() OVERRIDE; 39 virtual void RegisterMessages() OVERRIDE;
40 40
41 protected: 41 protected:
42 typedef std::multimap< 42 typedef std::multimap<
43 std::string, const input_method::VirtualKeyboard*> LayoutToKeyboard; 43 std::string, const input_method::VirtualKeyboard*> LayoutToKeyboard;
44 typedef std::map<GURL, const input_method::VirtualKeyboard*> UrlToKeyboard; 44 typedef std::map<GURL, const input_method::VirtualKeyboard*> UrlToKeyboard;
45 45
46 // Returns true if |layout_to_keyboard| contains |layout| as a key, and the 46 // Returns true if |layout_to_keyboard| contains |layout| as a key, and the
47 // value for |layout| contains |url|. This function is protected for 47 // value for |layout| contains |url|. This function is protected for
48 // testability. 48 // testability.
(...skipping 23 matching lines...) Expand all
72 // Handles chrome.send("clearVirtualKeyboardPreference") JS call. 72 // Handles chrome.send("clearVirtualKeyboardPreference") JS call.
73 void ClearVirtualKeyboardPreference(const base::ListValue* args); 73 void ClearVirtualKeyboardPreference(const base::ListValue* args);
74 74
75 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManagerHandler); 75 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManagerHandler);
76 }; 76 };
77 77
78 } // namespace options2 78 } // namespace options2
79 } // namespace chromeos 79 } // namespace chromeos
80 80
81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HA NDLER2_H_ 81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HA NDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698