| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/favicon/content/content_favicon_driver.h" | 9 #include "components/favicon/content/content_favicon_driver.h" |
| 10 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 content::WebContents* contents, | 119 content::WebContents* contents, |
| 120 const content::WebContentsUnresponsiveState& unresponsive_state); | 120 const content::WebContentsUnresponsiveState& unresponsive_state); |
| 121 virtual void EndForWebContents(content::WebContents* contents); | 121 virtual void EndForWebContents(content::WebContents* contents); |
| 122 | 122 |
| 123 // views::DialogDelegateView overrides: | 123 // views::DialogDelegateView overrides: |
| 124 base::string16 GetWindowTitle() const override; | 124 base::string16 GetWindowTitle() const override; |
| 125 void WindowClosing() override; | 125 void WindowClosing() override; |
| 126 int GetDialogButtons() const override; | 126 int GetDialogButtons() const override; |
| 127 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 127 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| 128 views::View* CreateExtraView() override; | 128 views::View* CreateExtraView() override; |
| 129 bool GroupExtraViewWithButtons() const override; |
| 129 bool Cancel() override; | 130 bool Cancel() override; |
| 130 bool ShouldUseCustomFrame() const override; | 131 bool ShouldUseCustomFrame() const override; |
| 131 | 132 |
| 132 // views::ButtonListener overrides: | 133 // views::ButtonListener overrides: |
| 133 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 134 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 134 | 135 |
| 135 // HungPagesTableModel::Delegate overrides: | 136 // HungPagesTableModel::Delegate overrides: |
| 136 void TabDestroyed() override; | 137 void TabDestroyed() override; |
| 137 | 138 |
| 138 protected: | 139 protected: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 bool kill_button_clicked_; | 174 bool kill_button_clicked_; |
| 174 | 175 |
| 175 // A copy of the unresponsive state which ShowForWebContents was | 176 // A copy of the unresponsive state which ShowForWebContents was |
| 176 // called with. | 177 // called with. |
| 177 content::WebContentsUnresponsiveState unresponsive_state_; | 178 content::WebContentsUnresponsiveState unresponsive_state_; |
| 178 | 179 |
| 179 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); | 180 DISALLOW_COPY_AND_ASSIGN(HungRendererDialogView); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ | 183 #endif // CHROME_BROWSER_UI_VIEWS_HUNG_RENDERER_VIEW_H_ |
| OLD | NEW |