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

Unified Diff: ui/web_dialogs/web_dialog_ui.cc

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | « ui/web_dialogs/web_dialog_ui.h ('k') | ui/web_dialogs/web_dialogs.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/web_dialogs/web_dialog_ui.cc
diff --git a/chrome/browser/ui/webui/web_dialog_ui.cc b/ui/web_dialogs/web_dialog_ui.cc
similarity index 80%
rename from chrome/browser/ui/webui/web_dialog_ui.cc
rename to ui/web_dialogs/web_dialog_ui.cc
index c5e3dc77ac63237d04ff347414866062ca85f4d9..2ef0f918dc461a708b84e075198baf86b23b4456 100644
--- a/chrome/browser/ui/webui/web_dialog_ui.cc
+++ b/ui/web_dialogs/web_dialog_ui.cc
@@ -2,27 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/web_dialog_ui.h"
+#include "ui/web_dialogs/web_dialog_ui.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/lazy_instance.h"
#include "base/property_bag.h"
#include "base/values.h"
-#include "chrome/browser/ui/webui/web_dialog_delegate.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "content/public/common/bindings_policy.h"
+#include "ui/web_dialogs/web_dialog_delegate.h"
using content::RenderViewHost;
using content::WebUIMessageHandler;
-static base::LazyInstance<base::PropertyAccessor<WebDialogDelegate*> >
+static base::LazyInstance<base::PropertyAccessor<ui::WebDialogDelegate*> >
g_web_dialog_ui_property_accessor = LAZY_INSTANCE_INITIALIZER;
+namespace ui {
+
WebDialogUI::WebDialogUI(content::WebUI* web_ui)
: WebUIController(web_ui) {
}
@@ -101,31 +103,4 @@ ExternalWebDialogUI::ExternalWebDialogUI(content::WebUI* web_ui)
ExternalWebDialogUI::~ExternalWebDialogUI() {
}
-std::string WebDialogDelegate::GetDialogName() const {
- return std::string();
-}
-
-void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
- GetDialogSize(size);
-}
-
-bool WebDialogDelegate::HandleContextMenu(
- const content::ContextMenuParams& params) {
- return false;
-}
-
-bool WebDialogDelegate::HandleOpenURLFromTab(
- content::WebContents* source,
- const content::OpenURLParams& params,
- content::WebContents** out_new_contents) {
- return false;
-}
-
-bool WebDialogDelegate::HandleAddNewContents(
- content::WebContents* source,
- content::WebContents* new_contents,
- WindowOpenDisposition disposition,
- const gfx::Rect& initial_pos,
- bool user_gesture) {
- return false;
-}
+} // namespace ui
« no previous file with comments | « ui/web_dialogs/web_dialog_ui.h ('k') | ui/web_dialogs/web_dialogs.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698