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" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void Init() override; | 71 void Init() override; |
72 | 72 |
73 // views::StyledLabelListener methods. | 73 // views::StyledLabelListener methods. |
74 void StyledLabelLinkClicked(views::StyledLabel* label, | 74 void StyledLabelLinkClicked(views::StyledLabel* label, |
75 const gfx::Range& range, | 75 const gfx::Range& range, |
76 int event_flags) override; | 76 int event_flags) override; |
77 | 77 |
78 // content::WebContentsObserver methods. | 78 // content::WebContentsObserver methods. |
79 void DidStartNavigationToPendingEntry( | 79 void DidStartNavigationToPendingEntry( |
80 const GURL& url, | 80 const GURL& url, |
81 content::NavigationController::ReloadType reload_type) override; | 81 content::ReloadType reload_type) override; |
82 void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 82 void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
83 const GURL& validated_url) override; | 83 const GURL& validated_url) override; |
84 void WasShown() override; | 84 void WasShown() override; |
85 void WasHidden() override; | 85 void WasHidden() override; |
86 | 86 |
87 // content::NotificationObserver methods. | 87 // content::NotificationObserver methods. |
88 void Observe(int type, | 88 void Observe(int type, |
89 const content::NotificationSource& source, | 89 const content::NotificationSource& source, |
90 const content::NotificationDetails& details) override; | 90 const content::NotificationDetails& details) override; |
91 | 91 |
(...skipping 27 matching lines...) Expand all Loading... |
119 bool started_navigation_; | 119 bool started_navigation_; |
120 | 120 |
121 // Whether or not the user chose to restore previous session. It is used to | 121 // Whether or not the user chose to restore previous session. It is used to |
122 // collect bubble usage stats. | 122 // collect bubble usage stats. |
123 bool restored_; | 123 bool restored_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); | 125 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); |
126 }; | 126 }; |
127 | 127 |
128 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ | 128 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ |
OLD | NEW |