OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SESSION_CRASHED_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/ui/session_crashed_bubble.h" | 11 #include "chrome/browser/ui/session_crashed_bubble.h" |
12 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "content/public/browser/reload_type.h" | 15 #include "content/public/browser/reload_type.h" |
16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
17 #include "ui/views/bubble/bubble_dialog_delegate.h" | 17 #include "ui/views/bubble/bubble_dialog_delegate.h" |
18 #include "ui/views/controls/styled_label_listener.h" | 18 #include "ui/views/controls/styled_label_listener.h" |
19 | 19 |
20 namespace views { | 20 namespace views { |
21 class Checkbox; | 21 class Checkbox; |
22 class GridLayout; | |
23 class Widget; | 22 class Widget; |
24 } | 23 } |
25 | 24 |
26 namespace content { | 25 namespace content { |
27 class WebContents; | 26 class WebContents; |
28 } | 27 } |
29 | 28 |
30 class Browser; | 29 class Browser; |
31 | 30 |
32 // It creates a session restore request bubble when the previous session has | 31 // It creates a session restore request bubble when the previous session has |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 bool started_navigation_; | 118 bool started_navigation_; |
120 | 119 |
121 // Whether or not the user chose to restore previous session. It is used to | 120 // Whether or not the user chose to restore previous session. It is used to |
122 // collect bubble usage stats. | 121 // collect bubble usage stats. |
123 bool restored_; | 122 bool restored_; |
124 | 123 |
125 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); | 124 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); |
126 }; | 125 }; |
127 | 126 |
128 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ | 127 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ |
OLD | NEW |