OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/hung_renderer_view.h" | 8 #include "chrome/browser/ui/views/hung_renderer_view.h" |
9 | 9 |
10 class HungRendererDialogViewWin : public HungRendererDialogView { | 10 class HungRendererDialogViewWin : public HungRendererDialogView { |
11 public: | 11 public: |
12 HungRendererDialogViewWin() {} | 12 HungRendererDialogViewWin(); |
13 virtual ~HungRendererDialogViewWin() {} | 13 virtual ~HungRendererDialogViewWin(); |
14 | 14 |
15 // HungRendererDialogView overrides. | 15 // HungRendererDialogView overrides. |
16 virtual void ShowForWebContents(WebContents* contents) OVERRIDE; | 16 virtual void ShowForWebContents(WebContents* contents) OVERRIDE; |
17 virtual void EndForWebContents(WebContents* contents) OVERRIDE; | 17 virtual void EndForWebContents(WebContents* contents) OVERRIDE; |
| 18 |
| 19 private: |
| 20 // Handlers for the hang monitor dialog displayed in Windows 8 metro. |
| 21 static void OnMetroKillProcess(); |
| 22 static void OnMetroWait(); |
| 23 |
| 24 // Resets Windows 8 metro specific state like whether the dialog was |
| 25 // displayed, etc. |
| 26 void ResetMetroState(); |
| 27 |
| 28 WebContents* contents_; |
| 29 |
| 30 // Set to true if the metro version of the hang dialog is displayed. |
| 31 // Helps ensure that only one instance of the dialog is displayed at any |
| 32 // given time. |
| 33 bool metro_dialog_displayed_; |
18 }; | 34 }; |
19 | 35 |
20 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ | 36 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_WIN_H_ |
21 | 37 |
OLD | NEW |