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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (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/history_ui.cc ('k') | chrome/browser/ui/webui/html_dialog_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_HTML_DIALOG_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 virtual string16 GetDialogTitle() const = 0; 39 virtual string16 GetDialogTitle() const = 0;
40 40
41 // Get the HTML file path for the content to load in the dialog. 41 // Get the HTML file path for the content to load in the dialog.
42 virtual GURL GetDialogContentURL() const = 0; 42 virtual GURL GetDialogContentURL() const = 0;
43 43
44 // Get WebUIMessageHandler objects to handle messages from the HTML/JS page. 44 // Get WebUIMessageHandler objects to handle messages from the HTML/JS page.
45 // The handlers are used to send and receive messages from the page while it 45 // The handlers are used to send and receive messages from the page while it
46 // is still open. Ownership of each handler is taken over by the WebUI 46 // is still open. Ownership of each handler is taken over by the WebUI
47 // hosting the page. 47 // hosting the page.
48 virtual void GetWebUIMessageHandlers( 48 virtual void GetWebUIMessageHandlers(
49 std::vector<WebUIMessageHandler*>* handlers) const = 0; 49 std::vector<content::WebUIMessageHandler*>* handlers) const = 0;
50 50
51 // Get the size of the dialog. 51 // Get the size of the dialog.
52 virtual void GetDialogSize(gfx::Size* size) const = 0; 52 virtual void GetDialogSize(gfx::Size* size) const = 0;
53 53
54 // Gets the JSON string input to use when showing the dialog. 54 // Gets the JSON string input to use when showing the dialog.
55 virtual std::string GetDialogArgs() const = 0; 55 virtual std::string GetDialogArgs() const = 0;
56 56
57 // A callback to notify the delegate that the dialog closed. 57 // A callback to notify the delegate that the dialog closed.
58 // IMPORTANT: Implementations should delete |this| here (unless they've 58 // IMPORTANT: Implementations should delete |this| here (unless they've
59 // arranged for the delegate to be deleted in some other way, e.g. by 59 // arranged for the delegate to be deleted in some other way, e.g. by
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Intended to be the place to collect the settings and lockdowns 133 // Intended to be the place to collect the settings and lockdowns
134 // necessary for running external UI components securely (e.g., the 134 // necessary for running external UI components securely (e.g., the
135 // cloud print dialog). 135 // cloud print dialog).
136 class ExternalHtmlDialogUI : public HtmlDialogUI { 136 class ExternalHtmlDialogUI : public HtmlDialogUI {
137 public: 137 public:
138 explicit ExternalHtmlDialogUI(content::WebContents* web_contents); 138 explicit ExternalHtmlDialogUI(content::WebContents* web_contents);
139 virtual ~ExternalHtmlDialogUI(); 139 virtual ~ExternalHtmlDialogUI();
140 }; 140 };
141 141
142 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_ 142 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | chrome/browser/ui/webui/html_dialog_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698