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

Unified Diff: chrome/browser/ui/webui/hung_renderer_dialog.h

Issue 7824039: Implement function that hides the WebUI Hung Renderer Dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: flackr's review issues Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/hung_renderer_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/hung_renderer_dialog.h
diff --git a/chrome/browser/ui/webui/hung_renderer_dialog.h b/chrome/browser/ui/webui/hung_renderer_dialog.h
index 29145a52657c4a1212cdfb1841ba06a712bbdb55..aa9eebc5e5fa499fd990664ec3a77d5dd3bf0ca0 100644
--- a/chrome/browser/ui/webui/hung_renderer_dialog.h
+++ b/chrome/browser/ui/webui/hung_renderer_dialog.h
@@ -18,12 +18,21 @@ class TabContents;
class HungRendererDialog : private HtmlDialogUIDelegate {
public:
+ // Shows a hung renderer dialog.
+ static void ShowHungRendererDialog(TabContents* contents);
+
+ // Hides a hung renderer dialog.
+ static void HideHungRendererDialog(TabContents* contents);
+
+ private:
HungRendererDialog();
// Shows the hung renderer dialog.
- void ShowDialog(gfx::NativeWindow owning_window, TabContents* contents);
+ void ShowDialog(TabContents* contents);
+
+ // Hides the hung renderer dialog.
+ void HideDialog(TabContents* contents);
- private:
// HtmlDialogUIDelegate methods
virtual bool IsDialogModal() const OVERRIDE;
virtual string16 GetDialogTitle() const OVERRIDE;
@@ -40,6 +49,9 @@ class HungRendererDialog : private HtmlDialogUIDelegate {
// The tab contents.
TabContents* contents_;
+ // The dialog window.
+ gfx::NativeWindow window_;
+
DISALLOW_COPY_AND_ASSIGN(HungRendererDialog);
};
@@ -63,3 +75,4 @@ class HungRendererDialogHandler : public WebUIMessageHandler {
#endif // CHROME_BROWSER_UI_WEBUI_HUNG_RENDERER_DIALOG_H_
+
« no previous file with comments | « no previous file | chrome/browser/ui/webui/hung_renderer_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698