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