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

Side by Side Diff: chrome/browser/ui/browser_dialogs.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/browser_window.h » ('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_BROWSER_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 class Browser; 12 class Browser;
13 class Extension;
14 class Profile; 13 class Profile;
15 class SkBitmap; 14 class SkBitmap;
16 class TabContentsWrapper; 15 class TabContentsWrapper;
17 class TabModalConfirmDialogDelegate; 16 class TabModalConfirmDialogDelegate;
18 class TemplateURL; 17 class TemplateURL;
19 class WebDialogDelegate; 18 class WebDialogDelegate;
20 19
21 namespace content { 20 namespace content {
22 class WebContents; 21 class WebContents;
23 } 22 }
24 23
24 namespace extensions {
25 class Extension;
26 }
27
25 namespace browser { 28 namespace browser {
26 29
27 #if defined(IPC_MESSAGE_LOG_ENABLED) 30 #if defined(IPC_MESSAGE_LOG_ENABLED)
28 31
29 // The dialog is a singleton. If the dialog is already opened, it won't do 32 // The dialog is a singleton. If the dialog is already opened, it won't do
30 // anything, so you can just blindly call this function all you want. 33 // anything, so you can just blindly call this function all you want.
31 // This is Called from chrome/browser/browser_about_handler.cc 34 // This is Called from chrome/browser/browser_about_handler.cc
32 void ShowAboutIPCDialog(); 35 void ShowAboutIPCDialog();
33 36
34 #endif // IPC_MESSAGE_LOG_ENABLED 37 #endif // IPC_MESSAGE_LOG_ENABLED
(...skipping 12 matching lines...) Expand all
47 WebDialogDelegate* delegate); 50 WebDialogDelegate* delegate);
48 51
49 // Shows the collected cookies dialog box. 52 // Shows the collected cookies dialog box.
50 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window, 53 void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window,
51 TabContentsWrapper* tab_contents); 54 TabContentsWrapper* tab_contents);
52 55
53 // Creates the ExtensionInstalledBubble and schedules it to be shown once 56 // Creates the ExtensionInstalledBubble and schedules it to be shown once
54 // the extension has loaded. |extension| is the installed extension. |browser| 57 // the extension has loaded. |extension| is the installed extension. |browser|
55 // is the browser window which will host the bubble. |icon| is the install 58 // is the browser window which will host the bubble. |icon| is the install
56 // icon of the extension. 59 // icon of the extension.
57 void ShowExtensionInstalledBubble(const Extension* extension, 60 void ShowExtensionInstalledBubble(const extensions::Extension* extension,
58 Browser* browser, 61 Browser* browser,
59 const SkBitmap& icon, 62 const SkBitmap& icon,
60 Profile* profile); 63 Profile* profile);
61 64
62 // Shows or hide the hung renderer dialog for the given WebContents. 65 // Shows or hide the hung renderer dialog for the given WebContents.
63 // We need to pass the WebContents to the dialog, because multiple tabs can hang 66 // We need to pass the WebContents to the dialog, because multiple tabs can hang
64 // and it needs to keep track of which tabs are currently hung. 67 // and it needs to keep track of which tabs are currently hung.
65 void ShowHungRendererDialog(content::WebContents* contents); 68 void ShowHungRendererDialog(content::WebContents* contents);
66 void HideHungRendererDialog(content::WebContents* contents); 69 void HideHungRendererDialog(content::WebContents* contents);
67 70
68 // Shows a tab-modal dialog box. 71 // Shows a tab-modal dialog box.
69 void ShowTabModalConfirmDialog(TabModalConfirmDialogDelegate* delegate, 72 void ShowTabModalConfirmDialog(TabModalConfirmDialogDelegate* delegate,
70 TabContentsWrapper* wrapper); 73 TabContentsWrapper* wrapper);
71 74
72 } // namespace browser 75 } // namespace browser
73 76
74 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 77 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698