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

Unified Diff: ui/web_dialogs/web_dialog_web_contents_delegate.h

Issue 10796049: Move WebDialogWebContentsDelegate to ui/web_dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/constrained_web_dialog_ui.h ('k') | ui/web_dialogs/web_dialog_web_contents_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/web_dialogs/web_dialog_web_contents_delegate.h
diff --git a/chrome/browser/ui/webui/web_dialog_web_contents_delegate.h b/ui/web_dialogs/web_dialog_web_contents_delegate.h
similarity index 88%
rename from chrome/browser/ui/webui/web_dialog_web_contents_delegate.h
rename to ui/web_dialogs/web_dialog_web_contents_delegate.h
index a0dd2a9bec173a7c85c4118ec2c23d2d28f7f052..e7965c9bd03e8ac139a7d382bcc164e01dc3d8fd 100644
--- a/chrome/browser/ui/webui/web_dialog_web_contents_delegate.h
+++ b/ui/web_dialogs/web_dialog_web_contents_delegate.h
@@ -2,18 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
-#define CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
+#ifndef UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
+#define UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
#include "base/compiler_specific.h"
#include "content/public/browser/web_contents_delegate.h"
+#include "ui/web_dialogs/web_dialogs_export.h"
+
+namespace ui {
// This class implements (and mostly ignores) most of
// content::WebContentsDelegate for use in a Web dialog. Subclasses need only
// override a few methods instead of the everything from
// content::WebContentsDelegate; this way, implementations on all platforms
// behave consistently.
-class WebDialogWebContentsDelegate : public content::WebContentsDelegate {
+class WEB_DIALOGS_EXPORT WebDialogWebContentsDelegate
+ : public content::WebContentsDelegate {
public:
// Handles OpenURLFromTab and AddNewContents for WebDialogWebContentsDelegate.
class WebContentsHandler {
@@ -73,4 +77,6 @@ class WebDialogWebContentsDelegate : public content::WebContentsDelegate {
DISALLOW_COPY_AND_ASSIGN(WebDialogWebContentsDelegate);
};
-#endif // CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
+} // namespace ui
+
+#endif // UI_WEB_DIALOGS_WEB_DIALOG_WEB_CONTENTS_DELEGATE_H_
« no previous file with comments | « ui/web_dialogs/constrained_web_dialog_ui.h ('k') | ui/web_dialogs/web_dialog_web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698