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 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ | 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ |
6 #define UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ | 6 #define UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "content/public/browser/web_contents_delegate.h" | 14 #include "content/public/browser/web_contents_delegate.h" |
15 #include "content/public/browser/web_ui_controller.h" | 15 #include "content/public/browser/web_ui_controller.h" |
16 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
17 #include "ui/web_dialogs/web_dialogs_export.h" | 17 #include "ui/web_dialogs/web_dialogs_export.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class WebContents; | 21 class WebContents; |
22 class WebUIMessageHandler; | |
23 struct ContextMenuParams; | |
24 } | |
25 | |
26 namespace gfx { | |
27 class Size; | |
28 } | 22 } |
29 | 23 |
30 namespace ui { | 24 namespace ui { |
31 | 25 |
32 class WebDialogDelegate; | 26 class WebDialogDelegate; |
33 | 27 |
34 // Displays file URL contents inside a modal web dialog. | 28 // Displays file URL contents inside a modal web dialog. |
35 // | 29 // |
36 // This application really should not use WebContents + WebUI. It should instead | 30 // This application really should not use WebContents + WebUI. It should instead |
37 // just embed a RenderView in a dialog and be done with it. | 31 // just embed a RenderView in a dialog and be done with it. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 70 |
77 // JS message handler. | 71 // JS message handler. |
78 void OnDialogClosed(const base::ListValue* args); | 72 void OnDialogClosed(const base::ListValue* args); |
79 | 73 |
80 DISALLOW_COPY_AND_ASSIGN(WebDialogUI); | 74 DISALLOW_COPY_AND_ASSIGN(WebDialogUI); |
81 }; | 75 }; |
82 | 76 |
83 } // namespace ui | 77 } // namespace ui |
84 | 78 |
85 #endif // UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ | 79 #endif // UI_WEB_DIALOGS_WEB_DIALOG_UI_H_ |
OLD | NEW |