Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/browser/ui/views/session_crashed_bubble_view.h

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
16 #include "ui/views/bubble/bubble_dialog_delegate.h" 17 #include "ui/views/bubble/bubble_dialog_delegate.h"
17 #include "ui/views/controls/styled_label_listener.h" 18 #include "ui/views/controls/styled_label_listener.h"
18 19
19 namespace views { 20 namespace views {
20 class Checkbox; 21 class Checkbox;
21 class GridLayout; 22 class GridLayout;
22 class Widget; 23 class Widget;
23 } 24 }
24 25
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void Init() override; 72 void Init() override;
72 73
73 // views::StyledLabelListener methods. 74 // views::StyledLabelListener methods.
74 void StyledLabelLinkClicked(views::StyledLabel* label, 75 void StyledLabelLinkClicked(views::StyledLabel* label,
75 const gfx::Range& range, 76 const gfx::Range& range,
76 int event_flags) override; 77 int event_flags) override;
77 78
78 // content::WebContentsObserver methods. 79 // content::WebContentsObserver methods.
79 void DidStartNavigationToPendingEntry( 80 void DidStartNavigationToPendingEntry(
80 const GURL& url, 81 const GURL& url,
81 content::NavigationController::ReloadType reload_type) override; 82 content::ReloadType reload_type) override;
82 void DidFinishLoad(content::RenderFrameHost* render_frame_host, 83 void DidFinishLoad(content::RenderFrameHost* render_frame_host,
83 const GURL& validated_url) override; 84 const GURL& validated_url) override;
84 void WasShown() override; 85 void WasShown() override;
85 void WasHidden() override; 86 void WasHidden() override;
86 87
87 // content::NotificationObserver methods. 88 // content::NotificationObserver methods.
88 void Observe(int type, 89 void Observe(int type,
89 const content::NotificationSource& source, 90 const content::NotificationSource& source,
90 const content::NotificationDetails& details) override; 91 const content::NotificationDetails& details) override;
91 92
(...skipping 27 matching lines...) Expand all
119 bool started_navigation_; 120 bool started_navigation_;
120 121
121 // Whether or not the user chose to restore previous session. It is used to 122 // Whether or not the user chose to restore previous session. It is used to
122 // collect bubble usage stats. 123 // collect bubble usage stats.
123 bool restored_; 124 bool restored_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); 126 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView);
126 }; 127 };
127 128
128 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ 129 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698