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

Side by Side Diff: chrome/browser/ui/webui/keyboard_ui.h

Issue 9188056: Start splitting out WebUI into an implementation class and an interface that each page implements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.cc ('k') | chrome/browser/ui/webui/keyboard_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 #include "content/public/browser/web_ui_controller.h"
13 14
14 // The TabContents used for the keyboard page. 15 // The TabContents used for the keyboard page.
15 class KeyboardUI : public WebUI { 16 class KeyboardUI : public WebUI, public content::WebUIController {
16 public: 17 public:
17 explicit KeyboardUI(content::WebContents* manager); 18 explicit KeyboardUI(content::WebContents* manager);
18 virtual ~KeyboardUI(); 19 virtual ~KeyboardUI();
19 20
20 class KeyboardHTMLSource : public ChromeURLDataManager::DataSource { 21 class KeyboardHTMLSource : public ChromeURLDataManager::DataSource {
21 public: 22 public:
22 KeyboardHTMLSource(); 23 KeyboardHTMLSource();
23 24
24 // Overrides from DataSource 25 // Overrides from DataSource
25 virtual void StartDataRequest(const std::string& path, 26 virtual void StartDataRequest(const std::string& path,
26 bool is_incognito, 27 bool is_incognito,
27 int request_id) OVERRIDE; 28 int request_id) OVERRIDE;
28 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 29 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
29 30
30 private: 31 private:
31 virtual ~KeyboardHTMLSource() {} 32 virtual ~KeyboardHTMLSource() {}
32 33
33 DISALLOW_COPY_AND_ASSIGN(KeyboardHTMLSource); 34 DISALLOW_COPY_AND_ASSIGN(KeyboardHTMLSource);
34 }; 35 };
35 36
36 private: 37 private:
37 DISALLOW_COPY_AND_ASSIGN(KeyboardUI); 38 DISALLOW_COPY_AND_ASSIGN(KeyboardUI);
38 }; 39 };
39 40
40 #endif // CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_ 41 #endif // CHROME_BROWSER_UI_WEBUI_KEYBOARD_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.cc ('k') | chrome/browser/ui/webui/keyboard_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698