| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "chrome/browser/favicon/favicon_tab_helper.h" | 9 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual void ShowForWebContents(content::WebContents* contents); | 112 virtual void ShowForWebContents(content::WebContents* contents); |
| 113 virtual void EndForWebContents(content::WebContents* contents); | 113 virtual void EndForWebContents(content::WebContents* contents); |
| 114 | 114 |
| 115 // views::DialogDelegateView overrides: | 115 // views::DialogDelegateView overrides: |
| 116 virtual string16 GetWindowTitle() const OVERRIDE; | 116 virtual string16 GetWindowTitle() const OVERRIDE; |
| 117 virtual void WindowClosing() OVERRIDE; | 117 virtual void WindowClosing() OVERRIDE; |
| 118 virtual int GetDialogButtons() const OVERRIDE; | 118 virtual int GetDialogButtons() const OVERRIDE; |
| 119 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 119 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 120 virtual views::View* GetExtraView() OVERRIDE; | 120 virtual views::View* GetExtraView() OVERRIDE; |
| 121 virtual bool Accept(bool window_closing) OVERRIDE; | 121 virtual bool Accept(bool window_closing) OVERRIDE; |
| 122 virtual views::View* GetContentsView() OVERRIDE; | |
| 123 | 122 |
| 124 // views::ButtonListener overrides: | 123 // views::ButtonListener overrides: |
| 125 virtual void ButtonPressed(views::Button* sender, | 124 virtual void ButtonPressed(views::Button* sender, |
| 126 const ui::Event& event) OVERRIDE; | 125 const ui::Event& event) OVERRIDE; |
| 127 | 126 |
| 128 // HungPagesTableModel::Delegate overrides: | 127 // HungPagesTableModel::Delegate overrides: |
| 129 virtual void TabDestroyed() OVERRIDE; | 128 virtual void TabDestroyed() OVERRIDE; |
| 130 | 129 |
| 131 protected: | 130 protected: |
| 132 HungRendererDialogView(); | 131 HungRendererDialogView(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Whether or not we've created controls for ourself. | 165 // Whether or not we've created controls for ourself. |
| 167 bool initialized_; | 166 bool initialized_; |
| 168 | 167 |
| 169 // An amusing icon image. | 168 // An amusing icon image. |
| 170 static gfx::ImageSkia* frozen_icon_; | 169 static gfx::ImageSkia* frozen_icon_; |
| 171 | 170 |
| 172 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); | 171 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ | 174 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
| OLD | NEW |