| OLD | NEW |
| 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 TabModalDialogDelegate; |
| 19 class TemplateURL; | 20 class TemplateURL; |
| 20 | 21 |
| 21 namespace browser { | 22 namespace browser { |
| 22 | 23 |
| 23 #if defined(IPC_MESSAGE_LOG_ENABLED) | 24 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 24 | 25 |
| 25 // The dialog is a singleton. If the dialog is already opened, it won't do | 26 // 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. | 27 // anything, so you can just blindly call this function all you want. |
| 27 // This is Called from chrome/browser/browser_about_handler.cc | 28 // This is Called from chrome/browser/browser_about_handler.cc |
| 28 void ShowAboutIPCDialog(); | 29 void ShowAboutIPCDialog(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 void HideHungRendererDialog(TabContents* contents); | 56 void HideHungRendererDialog(TabContents* contents); |
| 56 | 57 |
| 57 // Native implementations of hung renderer dialogs. | 58 // Native implementations of hung renderer dialogs. |
| 58 void ShowNativeHungRendererDialog(TabContents* contents); | 59 void ShowNativeHungRendererDialog(TabContents* contents); |
| 59 void HideNativeHungRendererDialog(TabContents* contents); | 60 void HideNativeHungRendererDialog(TabContents* contents); |
| 60 | 61 |
| 61 // Show the edit search engine dialog. | 62 // Show the edit search engine dialog. |
| 62 void ConfirmAddSearchProvider(const TemplateURL* template_url, | 63 void ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 63 Profile* profile); | 64 Profile* profile); |
| 64 | 65 |
| 66 // Shows a tab-modal dialog box. |
| 67 void ShowTabModalDialog(TabModalDialogDelegate* delegate, |
| 68 gfx::NativeWindow parent_window, |
| 69 TabContents* tab_contents); |
| 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_ |
| OLD | NEW |