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

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

Issue 8986005: Reland r114898: Add TabModalConfirmDialogDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix and cleanup Created 9 years 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
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 "chrome/browser/ui/dialog_style.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 class Browser; 13 class Browser;
14 class Extension; 14 class Extension;
15 class HtmlDialogUIDelegate; 15 class HtmlDialogUIDelegate;
16 class Profile; 16 class Profile;
17 class SkBitmap; 17 class SkBitmap;
18 class TabContents; 18 class TabContents;
19 class TabContentsWrapper;
20 class TabModalConfirmDialogDelegate;
19 class TemplateURL; 21 class TemplateURL;
20 22
21 namespace browser { 23 namespace browser {
22 24
23 #if defined(IPC_MESSAGE_LOG_ENABLED) 25 #if defined(IPC_MESSAGE_LOG_ENABLED)
24 26
25 // The dialog is a singleton. If the dialog is already opened, it won't do 27 // The dialog is a singleton. If the dialog is already opened, it won't do
26 // anything, so you can just blindly call this function all you want. 28 // anything, so you can just blindly call this function all you want.
27 // This is Called from chrome/browser/browser_about_handler.cc 29 // This is Called from chrome/browser/browser_about_handler.cc
28 void ShowAboutIPCDialog(); 30 void ShowAboutIPCDialog();
(...skipping 26 matching lines...) Expand all
55 void HideHungRendererDialog(TabContents* contents); 57 void HideHungRendererDialog(TabContents* contents);
56 58
57 // Native implementations of hung renderer dialogs. 59 // Native implementations of hung renderer dialogs.
58 void ShowNativeHungRendererDialog(TabContents* contents); 60 void ShowNativeHungRendererDialog(TabContents* contents);
59 void HideNativeHungRendererDialog(TabContents* contents); 61 void HideNativeHungRendererDialog(TabContents* contents);
60 62
61 // Show the edit search engine dialog. 63 // Show the edit search engine dialog.
62 void ConfirmAddSearchProvider(const TemplateURL* template_url, 64 void ConfirmAddSearchProvider(const TemplateURL* template_url,
63 Profile* profile); 65 Profile* profile);
64 66
67 // Shows a tab-modal dialog box.
68 void ShowTabModalConfirmDialog(TabModalConfirmDialogDelegate* delegate,
69 TabContentsWrapper* wrapper);
70
65 } // namespace browser 71 } // namespace browser
66 72
67 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 73 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698