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

Unified Diff: chrome/browser/ui/webui/html_dialog_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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/html_dialog_ui.h
===================================================================
--- chrome/browser/ui/webui/html_dialog_ui.h (revision 117388)
+++ chrome/browser/ui/webui/html_dialog_ui.h (working copy)
@@ -11,6 +11,7 @@
#include "base/string16.h"
#include "content/browser/webui/web_ui.h"
+#include "content/public/browser/web_ui_controller.h"
#include "googleurl/src/gurl.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/rect.h"
@@ -95,7 +96,7 @@
// there and call it back. This is a bit of a hack to allow the dialog to pass
// its delegate to the Web UI without having nasty accessors on the WebContents.
// The correct design using RVH directly would avoid all of this.
-class HtmlDialogUI : public WebUI {
+class HtmlDialogUI : public WebUI, public content::WebUIController {
public:
struct HtmlDialogParams {
// The URL for the content that will be loaded in the dialog.
@@ -120,7 +121,7 @@
static base::PropertyAccessor<HtmlDialogUIDelegate*>& GetPropertyAccessor();
private:
- // WebUI
+ // WebUIController
virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
// JS message handler.
« 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