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

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

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
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 #include "chrome/browser/ui/webui/html_dialog_ui.h" 5 #include "chrome/browser/ui/webui/html_dialog_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/property_bag.h" 10 #include "base/property_bag.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/common/chrome_notification_types.h" 12 #include "chrome/common/chrome_notification_types.h"
13 #include "content/browser/renderer_host/render_view_host.h" 13 #include "content/browser/renderer_host/render_view_host.h"
14 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/browser/web_ui_message_handler.h"
16 #include "content/public/common/bindings_policy.h" 17 #include "content/public/common/bindings_policy.h"
17 18
18 using content::WebContents; 19 using content::WebContents;
20 using content::WebUIMessageHandler;
19 21
20 static base::LazyInstance<base::PropertyAccessor<HtmlDialogUIDelegate*> > 22 static base::LazyInstance<base::PropertyAccessor<HtmlDialogUIDelegate*> >
21 g_html_dialog_ui_property_accessor = LAZY_INSTANCE_INITIALIZER; 23 g_html_dialog_ui_property_accessor = LAZY_INSTANCE_INITIALIZER;
22 24
23 HtmlDialogUI::HtmlDialogUI(WebContents* web_contents) 25 HtmlDialogUI::HtmlDialogUI(WebContents* web_contents)
24 : ChromeWebUI(web_contents) { 26 : ChromeWebUI(web_contents) {
25 } 27 }
26 28
27 HtmlDialogUI::~HtmlDialogUI() { 29 HtmlDialogUI::~HtmlDialogUI() {
28 // Don't unregister our property. During the teardown of the WebContents, 30 // Don't unregister our property. During the teardown of the WebContents,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // that are scoped in duration to the dialogs existence. 101 // that are scoped in duration to the dialogs existence.
100 bindings_ &= ~content::BINDINGS_POLICY_WEB_UI; 102 bindings_ &= ~content::BINDINGS_POLICY_WEB_UI;
101 } 103 }
102 104
103 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() { 105 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() {
104 } 106 }
105 107
106 bool HtmlDialogUIDelegate::HandleContextMenu(const ContextMenuParams& params) { 108 bool HtmlDialogUIDelegate::HandleContextMenu(const ContextMenuParams& params) {
107 return false; 109 return false;
108 } 110 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.h ('k') | chrome/browser/ui/webui/hung_renderer_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698