| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 14 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
| 17 #include "content/public/browser/web_ui_message_handler.h" | 17 #include "content/public/browser/web_ui_message_handler.h" |
| 18 #include "content/public/common/bindings_policy.h" | 18 #include "content/public/common/bindings_policy.h" |
| 19 | 19 |
| 20 using content::RenderViewHost; |
| 20 using content::WebUIMessageHandler; | 21 using content::WebUIMessageHandler; |
| 21 | 22 |
| 22 static base::LazyInstance<base::PropertyAccessor<HtmlDialogUIDelegate*> > | 23 static base::LazyInstance<base::PropertyAccessor<HtmlDialogUIDelegate*> > |
| 23 g_html_dialog_ui_property_accessor = LAZY_INSTANCE_INITIALIZER; | 24 g_html_dialog_ui_property_accessor = LAZY_INSTANCE_INITIALIZER; |
| 24 | 25 |
| 25 HtmlDialogUI::HtmlDialogUI(content::WebUI* web_ui) | 26 HtmlDialogUI::HtmlDialogUI(content::WebUI* web_ui) |
| 26 : WebUIController(web_ui) { | 27 : WebUIController(web_ui) { |
| 27 } | 28 } |
| 28 | 29 |
| 29 HtmlDialogUI::~HtmlDialogUI() { | 30 HtmlDialogUI::~HtmlDialogUI() { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 117 } |
| 117 | 118 |
| 118 bool HtmlDialogUIDelegate::HandleAddNewContents( | 119 bool HtmlDialogUIDelegate::HandleAddNewContents( |
| 119 content::WebContents* source, | 120 content::WebContents* source, |
| 120 content::WebContents* new_contents, | 121 content::WebContents* new_contents, |
| 121 WindowOpenDisposition disposition, | 122 WindowOpenDisposition disposition, |
| 122 const gfx::Rect& initial_pos, | 123 const gfx::Rect& initial_pos, |
| 123 bool user_gesture) { | 124 bool user_gesture) { |
| 124 return false; | 125 return false; |
| 125 } | 126 } |
| OLD | NEW |