| OLD | NEW |
| 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 Loading... |
| 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; | |
| 39 virtual void RegisterMessages() OVERRIDE; | 38 virtual void RegisterMessages() OVERRIDE; |
| 40 | 39 |
| 41 protected: | 40 protected: |
| 42 typedef std::multimap< | 41 typedef std::multimap< |
| 43 std::string, const input_method::VirtualKeyboard*> LayoutToKeyboard; | 42 std::string, const input_method::VirtualKeyboard*> LayoutToKeyboard; |
| 44 typedef std::map<GURL, const input_method::VirtualKeyboard*> UrlToKeyboard; | 43 typedef std::map<GURL, const input_method::VirtualKeyboard*> UrlToKeyboard; |
| 45 | 44 |
| 46 // Returns true if |layout_to_keyboard| contains |layout| as a key, and the | 45 // Returns true if |layout_to_keyboard| contains |layout| as a key, and the |
| 47 // value for |layout| contains |url|. This function is protected for | 46 // value for |layout| contains |url|. This function is protected for |
| 48 // testability. | 47 // testability. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 // Handles chrome.send("clearVirtualKeyboardPreference") JS call. | 71 // Handles chrome.send("clearVirtualKeyboardPreference") JS call. |
| 73 void ClearVirtualKeyboardPreference(const base::ListValue* args); | 72 void ClearVirtualKeyboardPreference(const base::ListValue* args); |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManagerHandler); | 74 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManagerHandler); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace options2 | 77 } // namespace options2 |
| 79 } // namespace chromeos | 78 } // namespace chromeos |
| 80 | 79 |
| 81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HA
NDLER2_H_ | 80 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_VIRTUAL_KEYBOARD_MANAGER_HA
NDLER2_H_ |
| OLD | NEW |