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

Unified Diff: ui/web_dialogs/constrained_web_dialog_ui.h

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
Index: ui/web_dialogs/constrained_web_dialog_ui.h
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_ui.h b/ui/web_dialogs/constrained_web_dialog_ui.h
similarity index 89%
rename from chrome/browser/ui/webui/constrained_web_dialog_ui.h
rename to ui/web_dialogs/constrained_web_dialog_ui.h
index 96b68af007ed8b8aca22023f5b79ca2dd427038e..2eb50b33a57c1f0208fedc240446af56869534da 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_ui.h
+++ b/ui/web_dialogs/constrained_web_dialog_ui.h
@@ -2,17 +2,17 @@
// 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_CONSTRAINED_WEB_DIALOG_UI_H_
-#define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
+#ifndef UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_
+#define UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_
#pragma once
#include "base/compiler_specific.h"
#include "content/public/browser/web_ui_controller.h"
+#include "ui/web_dialogs/web_dialogs_export.h"
class ConstrainedWindow;
class Profile;
class TabContentsWrapper;
-class WebDialogDelegate;
class WebDialogWebContentsDelegate;
namespace base {
@@ -23,7 +23,10 @@ namespace content {
class RenderViewHost;
}
-class ConstrainedWebDialogDelegate {
+namespace ui {
+class WebDialogDelegate;
+
+class WEB_DIALOGS_EXPORT ConstrainedWebDialogDelegate {
public:
virtual const WebDialogDelegate* GetWebDialogDelegate() const = 0;
virtual WebDialogDelegate* GetWebDialogDelegate() = 0;
@@ -55,7 +58,8 @@ class ConstrainedWebDialogDelegate {
// implementations, this class is just a factory stub.
// TODO(thestig) Refactor the platform-independent code out of the
// platform-specific implementations.
-class ConstrainedWebDialogUI : public content::WebUIController {
+class WEB_DIALOGS_EXPORT ConstrainedWebDialogUI
+ : public content::WebUIController {
public:
explicit ConstrainedWebDialogUI(content::WebUI* web_ui);
virtual ~ConstrainedWebDialogUI();
@@ -97,4 +101,6 @@ class ConstrainedWebDialogUI : public content::WebUIController {
DISALLOW_COPY_AND_ASSIGN(ConstrainedWebDialogUI);
};
-#endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_WEB_DIALOG_UI_H_
+} // namespace ui
+
+#endif // UI_WEB_DIALOGS_CONSTRAINED_WEB_DIALOG_UI_H_

Powered by Google App Engine
This is Rietveld 408576698