Index: chrome/browser/ui/views/hung_renderer_view_win.h |
=================================================================== |
--- chrome/browser/ui/views/hung_renderer_view_win.h (revision 147919) |
+++ chrome/browser/ui/views/hung_renderer_view_win.h (working copy) |
@@ -5,16 +5,37 @@ |
#ifndef CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |
#define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |
-#include "chrome/browser/ui/views/hung_renderer_view.h" |
+#include "base/basictypes.h" |
+#include "chrome/browser/ui/tab_contents/tab_contents.h" |
+#include "content/public/browser/web_contents.h" |
-class HungRendererDialogViewWin : public HungRendererDialogView { |
+using content::WebContents; |
sky
2012/07/24 21:26:05
no using in headers.
ananta
2012/07/24 21:36:17
Done.
|
+ |
+// This class provides functionality to display a Windows 8 metro style hung |
+// renderer dialog. |
+class HungRendererDialogMetro { |
public: |
- HungRendererDialogViewWin() {} |
- virtual ~HungRendererDialogViewWin() {} |
+ HungRendererDialogMetro(); |
+ virtual ~HungRendererDialogMetro(); |
sky
2012/07/24 21:26:05
no virtual.
ananta
2012/07/24 21:36:17
Done.
|
- // HungRendererDialogView overrides. |
- virtual void ShowForWebContents(WebContents* contents) OVERRIDE; |
- virtual void EndForWebContents(WebContents* contents) OVERRIDE; |
+ virtual void Show(WebContents* contents); |
sky
2012/07/24 21:26:05
no virtual on these.
ananta
2012/07/24 21:36:17
Artifacts from the previous iteration :(. Removed.
|
+ virtual void Hide(WebContents* contents); |
+ |
+ private: |
+ // Handlers for the hang monitor dialog displayed in Windows 8 metro. |
+ static void OnMetroKillProcess(); |
+ static void OnMetroWait(); |
+ |
+ // Resets Windows 8 metro specific state like whether the dialog was |
+ // displayed, etc. |
+ void ResetMetroState(); |
+ |
+ WebContents* contents_; |
+ |
+ // Set to true if the metro version of the hang dialog is displayed. |
+ // Helps ensure that only one instance of the dialog is displayed at any |
+ // given time. |
+ bool metro_dialog_displayed_; |
}; |
sky
2012/07/24 21:26:05
DISALLOW_...
ananta
2012/07/24 21:36:17
Done.
|
#endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |