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

Side by Side Diff: ui/web_dialogs/web_dialog_delegate.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, 6 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
« no previous file with comments | « ui/web_dialogs/constrained_web_dialog_ui.cc ('k') | ui/web_dialogs/web_dialog_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_DELEGATE_H_ 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
6 #define CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_DELEGATE_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "ui/base/ui_base_types.h" 13 #include "ui/base/ui_base_types.h"
14 #include "ui/web_dialogs/web_dialogs_export.h"
14 #include "webkit/glue/window_open_disposition.h" 15 #include "webkit/glue/window_open_disposition.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace content { 19 namespace content {
19 class RenderViewHost; 20 class RenderViewHost;
20 class WebContents; 21 class WebContents;
21 class WebUI; 22 class WebUI;
22 class WebUIMessageHandler; 23 class WebUIMessageHandler;
23 struct ContextMenuParams; 24 struct ContextMenuParams;
24 struct OpenURLParams; 25 struct OpenURLParams;
25 } 26 }
26 27
27 namespace gfx { 28 namespace gfx {
28 class Rect; 29 class Rect;
29 class Size; 30 class Size;
30 } 31 }
31 32
33 namespace ui {
34
32 // Implement this class to receive notifications. 35 // Implement this class to receive notifications.
33 class WebDialogDelegate { 36 class WEB_DIALOGS_EXPORT WebDialogDelegate {
34 public: 37 public:
35 // Returns true if the contents needs to be run in a modal dialog. 38 // Returns true if the contents needs to be run in a modal dialog.
36 virtual ui::ModalType GetDialogModalType() const = 0; 39 virtual ModalType GetDialogModalType() const = 0;
37 40
38 // Returns the title of the dialog. 41 // Returns the title of the dialog.
39 virtual string16 GetDialogTitle() const = 0; 42 virtual string16 GetDialogTitle() const = 0;
40 43
41 // Returns the dialog's name identifier. Used to identify this dialog for 44 // Returns the dialog's name identifier. Used to identify this dialog for
42 // state restoration. 45 // state restoration.
43 virtual std::string GetDialogName() const; 46 virtual std::string GetDialogName() const;
44 47
45 // Get the HTML file path for the content to load in the dialog. 48 // Get the HTML file path for the content to load in the dialog.
46 virtual GURL GetDialogContentURL() const = 0; 49 virtual GURL GetDialogContentURL() const = 0;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const gfx::Rect& initial_pos, 115 const gfx::Rect& initial_pos,
113 bool user_gesture); 116 bool user_gesture);
114 117
115 // Stores the dialog bounds. 118 // Stores the dialog bounds.
116 virtual void StoreDialogSize(const gfx::Size& dialog_size) {} 119 virtual void StoreDialogSize(const gfx::Size& dialog_size) {}
117 120
118 protected: 121 protected:
119 virtual ~WebDialogDelegate() {} 122 virtual ~WebDialogDelegate() {}
120 }; 123 };
121 124
125 } // namespace ui
122 126
123 #endif // CHROME_BROWSER_UI_WEBUI_WEB_DIALOG_DELEGATE_H_ 127 #endif // UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/web_dialogs/constrained_web_dialog_ui.cc ('k') | ui/web_dialogs/web_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698