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) |
@@ -9,12 +9,28 @@ |
class HungRendererDialogViewWin : public HungRendererDialogView { |
public: |
- HungRendererDialogViewWin() {} |
- virtual ~HungRendererDialogViewWin() {} |
+ HungRendererDialogViewWin(); |
+ virtual ~HungRendererDialogViewWin(); |
// HungRendererDialogView overrides. |
virtual void ShowForWebContents(WebContents* contents) OVERRIDE; |
virtual void EndForWebContents(WebContents* contents) OVERRIDE; |
+ |
+ 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_; |
}; |
#endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |