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

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

Issue 8479042: UI polish for certificate viewer (Closed) Base URL: /usr/local/google/home/bshe/NoTouchChromium/../TouchChromium/src/@trunk
Patch Set: Edit comments. Created 9 years, 1 month 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.cc ('k') | chrome/browser/ui/dialog_style.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/dialog_style.h"
9 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 12
12 class Browser; 13 class Browser;
13 class Extension; 14 class Extension;
14 class HtmlDialogUIDelegate; 15 class HtmlDialogUIDelegate;
15 class Profile; 16 class Profile;
16 class SkBitmap; 17 class SkBitmap;
17 class TabContents; 18 class TabContents;
18 class TemplateURL; 19 class TemplateURL;
19 20
20 namespace browser { 21 namespace browser {
21 22
22 #if defined(IPC_MESSAGE_LOG_ENABLED) 23 #if defined(IPC_MESSAGE_LOG_ENABLED)
23 24
24 // The dialog is a singleton. If the dialog is already opened, it won't do 25 // The dialog is a singleton. If the dialog is already opened, it won't do
25 // anything, so you can just blindly call this function all you want. 26 // anything, so you can just blindly call this function all you want.
26 // This is Called from chrome/browser/browser_about_handler.cc 27 // This is Called from chrome/browser/browser_about_handler.cc
27 void ShowAboutIPCDialog(); 28 void ShowAboutIPCDialog();
28 29
29 #endif // IPC_MESSAGE_LOG_ENABLED 30 #endif // IPC_MESSAGE_LOG_ENABLED
30 31
31 // Creates and shows an HTML dialog with the given delegate and profile. 32 // Creates and shows an HTML dialog with the given delegate and profile.
32 // The window is automatically destroyed when it is closed. 33 // The window is automatically destroyed when it is closed.
33 // Returns the created window. 34 // Returns the created window.
34 // 35 //
35 // Make sure to use the returned window only when you know it is safe 36 // Make sure to use the returned window only when you know it is safe
36 // to do so, i.e. before OnDialogClosed() is called on the delegate. 37 // to do so, i.e. before OnDialogClosed() is called on the delegate.
37 gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, Profile* profile, 38 gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, Profile* profile,
38 HtmlDialogUIDelegate* delegate); 39 HtmlDialogUIDelegate* delegate,
40 DialogStyle style);
39 41
40 // Creates the ExtensionInstalledBubble and schedules it to be shown once 42 // Creates the ExtensionInstalledBubble and schedules it to be shown once
41 // the extension has loaded. |extension| is the installed extension. |browser| 43 // the extension has loaded. |extension| is the installed extension. |browser|
42 // is the browser window which will host the bubble. |icon| is the install 44 // is the browser window which will host the bubble. |icon| is the install
43 // icon of the extension. 45 // icon of the extension.
44 void ShowExtensionInstalledBubble(const Extension* extension, 46 void ShowExtensionInstalledBubble(const Extension* extension,
45 Browser* browser, 47 Browser* browser,
46 const SkBitmap& icon, 48 const SkBitmap& icon,
47 Profile* profile); 49 Profile* profile);
48 50
49 // Shows or hide the hung renderer dialog for the given TabContents. 51 // Shows or hide the hung renderer dialog for the given TabContents.
50 // We need to pass the TabContents to the dialog, because multiple tabs can hang 52 // We need to pass the TabContents to the dialog, because multiple tabs can hang
51 // and it needs to keep track of which tabs are currently hung. 53 // and it needs to keep track of which tabs are currently hung.
52 void ShowHungRendererDialog(TabContents* contents); 54 void ShowHungRendererDialog(TabContents* contents);
53 void HideHungRendererDialog(TabContents* contents); 55 void HideHungRendererDialog(TabContents* contents);
54 56
55 // Native implementations of hung renderer dialogs. 57 // Native implementations of hung renderer dialogs.
56 void ShowNativeHungRendererDialog(TabContents* contents); 58 void ShowNativeHungRendererDialog(TabContents* contents);
57 void HideNativeHungRendererDialog(TabContents* contents); 59 void HideNativeHungRendererDialog(TabContents* contents);
58 60
59 // Show the edit search engine dialog. 61 // Show the edit search engine dialog.
60 void ConfirmAddSearchProvider(const TemplateURL* template_url, 62 void ConfirmAddSearchProvider(const TemplateURL* template_url,
61 Profile* profile); 63 Profile* profile);
62 64
63 } // namespace browser 65 } // namespace browser
64 66
65 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 67 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/dialog_style.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698