| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 11 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 12 #include "content/browser/webui/web_ui.h" | 12 #include "content/browser/webui/web_ui.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 // The TabContents used for the keyboard page. | 16 // The TabContents used for the keyboard page. |
| 17 class KeyboardUI : public WebUI { | 17 class KeyboardUI : public WebUI { |
| 18 public: | 18 public: |
| 19 explicit KeyboardUI(TabContents* manager); | 19 explicit KeyboardUI(TabContents* manager); |
| 20 ~KeyboardUI(); | 20 virtual ~KeyboardUI(); |
| 21 | 21 |
| 22 class KeyboardHTMLSource : public ChromeURLDataManager::DataSource { | 22 class KeyboardHTMLSource : public ChromeURLDataManager::DataSource { |
| 23 public: | 23 public: |
| 24 KeyboardHTMLSource(); | 24 KeyboardHTMLSource(); |
| 25 | 25 |
| 26 // Overrides from DataSource | 26 // Overrides from DataSource |
| 27 virtual void StartDataRequest(const std::string& path, | 27 virtual void StartDataRequest(const std::string& path, |
| 28 bool is_incognito, | 28 bool is_incognito, |
| 29 int request_id); | 29 int request_id); |
| 30 virtual std::string GetMimeType(const std::string&) const; | 30 virtual std::string GetMimeType(const std::string&) const; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 virtual ~KeyboardHTMLSource() {} | 33 virtual ~KeyboardHTMLSource() {} |
| 34 | 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(KeyboardHTMLSource); | 35 DISALLOW_COPY_AND_ASSIGN(KeyboardHTMLSource); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(KeyboardUI); | 39 DISALLOW_COPY_AND_ASSIGN(KeyboardUI); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ | 42 #endif // CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ |
| OLD | NEW |