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/ui/tab_contents/tab_contents.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 virtual string16 GetWindowTitle() const OVERRIDE; | 117 virtual string16 GetWindowTitle() const OVERRIDE; |
118 virtual void WindowClosing() OVERRIDE; | 118 virtual void WindowClosing() OVERRIDE; |
119 virtual int GetDialogButtons() const OVERRIDE; | 119 virtual int GetDialogButtons() const OVERRIDE; |
120 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 120 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
121 virtual views::View* GetExtraView() OVERRIDE; | 121 virtual views::View* GetExtraView() OVERRIDE; |
122 virtual bool Accept(bool window_closing) OVERRIDE; | 122 virtual bool Accept(bool window_closing) OVERRIDE; |
123 virtual views::View* GetContentsView() OVERRIDE; | 123 virtual views::View* GetContentsView() OVERRIDE; |
124 | 124 |
125 // views::ButtonListener overrides: | 125 // views::ButtonListener overrides: |
126 virtual void ButtonPressed(views::Button* sender, | 126 virtual void ButtonPressed(views::Button* sender, |
127 const views::Event& event) OVERRIDE; | 127 const ui::Event& event) OVERRIDE; |
128 | 128 |
129 // HungPagesTableModel::Delegate overrides: | 129 // HungPagesTableModel::Delegate overrides: |
130 virtual void TabDestroyed() OVERRIDE; | 130 virtual void TabDestroyed() OVERRIDE; |
131 | 131 |
132 protected: | 132 protected: |
133 HungRendererDialogView(); | 133 HungRendererDialogView(); |
134 virtual ~HungRendererDialogView(); | 134 virtual ~HungRendererDialogView(); |
135 | 135 |
136 // views::View overrides: | 136 // views::View overrides: |
137 virtual void ViewHierarchyChanged(bool is_add, | 137 virtual void ViewHierarchyChanged(bool is_add, |
(...skipping 29 matching lines...) Expand all Loading... |
167 // Whether or not we've created controls for ourself. | 167 // Whether or not we've created controls for ourself. |
168 bool initialized_; | 168 bool initialized_; |
169 | 169 |
170 // An amusing icon image. | 170 // An amusing icon image. |
171 static gfx::ImageSkia* frozen_icon_; | 171 static gfx::ImageSkia* frozen_icon_; |
172 | 172 |
173 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); | 173 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); |
174 }; | 174 }; |
175 | 175 |
176 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ | 176 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
OLD | NEW |