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

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

Issue 2819633002: Restored Pre-Harmony Bubble title margin metrics (Closed)
Patch Set: Fixed a typo Created 3 years, 8 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"
(...skipping 19 matching lines...) Expand all
30 class BrowserRemovalObserver; 30 class BrowserRemovalObserver;
31 31
32 // Creates and shows the session crashed bubble, with |uma_opted_in_already| 32 // Creates and shows the session crashed bubble, with |uma_opted_in_already|
33 // indicating whether the user has already opted-in to UMA. It will be called 33 // indicating whether the user has already opted-in to UMA. It will be called
34 // by Show. It takes ownership of |browser_observer|. 34 // by Show. It takes ownership of |browser_observer|.
35 static void ShowForReal( 35 static void ShowForReal(
36 std::unique_ptr<BrowserRemovalObserver> browser_observer, 36 std::unique_ptr<BrowserRemovalObserver> browser_observer,
37 bool uma_opted_in_already); 37 bool uma_opted_in_already);
38 38
39 private: 39 private:
40 friend class SessionCrashedBubbleViewTest;
41
40 SessionCrashedBubbleView(views::View* anchor_view, 42 SessionCrashedBubbleView(views::View* anchor_view,
41 Browser* browser, 43 Browser* browser,
42 bool offer_uma_optin); 44 bool offer_uma_optin);
43 ~SessionCrashedBubbleView() override; 45 ~SessionCrashedBubbleView() override;
44 46
45 // WidgetDelegateView methods. 47 // WidgetDelegateView methods.
46 base::string16 GetWindowTitle() const override; 48 base::string16 GetWindowTitle() const override;
47 bool ShouldShowWindowTitle() const override; 49 bool ShouldShowWindowTitle() const override;
48 bool ShouldShowCloseButton() const override; 50 bool ShouldShowCloseButton() const override;
49 void OnWidgetDestroying(views::Widget* widget) override; 51 void OnWidgetDestroying(views::Widget* widget) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool offer_uma_optin_; 86 bool offer_uma_optin_;
85 87
86 // Whether or not the user ignored the bubble. It is used to collect bubble 88 // Whether or not the user ignored the bubble. It is used to collect bubble
87 // usage stats. 89 // usage stats.
88 bool ignored_; 90 bool ignored_;
89 91
90 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); 92 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView);
91 }; 93 };
92 94
93 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ 95 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698