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

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

Issue 941133002: Update global error bubble view's boundary (position and size) after loading elevation icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_OUTDATED_UPGRADE_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_
7 7
8 #include "base/memory/weak_ptr.h"
8 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
10 11
11 class ElevationIconSetter; 12 class ElevationIconSetter;
12 13
13 namespace views { 14 namespace views {
14 class LabelButton; 15 class LabelButton;
15 } 16 }
16 17
17 namespace content { 18 namespace content {
18 class PageNavigator; 19 class PageNavigator;
19 } 20 }
20 21
21 // OutdatedUpgradeBubbleView warns the user that an upgrade is long overdue. 22 // OutdatedUpgradeBubbleView warns the user that an upgrade is long overdue.
22 // It is intended to be used as the content of a bubble anchored off of the 23 // It is intended to be used as the content of a bubble anchored off of the
23 // Chrome toolbar. Don't create an OutdatedUpgradeBubbleView directly, 24 // Chrome toolbar. Don't create an OutdatedUpgradeBubbleView directly,
24 // instead use the static ShowBubble method. 25 // instead use the static ShowBubble method.
25 class OutdatedUpgradeBubbleView : public views::BubbleDelegateView, 26 class OutdatedUpgradeBubbleView
26 public views::ButtonListener { 27 : public views::BubbleDelegateView,
28 public base::SupportsWeakPtr<OutdatedUpgradeBubbleView>,
29 public views::ButtonListener {
27 public: 30 public:
28 static void ShowBubble(views::View* anchor_view, 31 static void ShowBubble(views::View* anchor_view,
29 content::PageNavigator* navigator, 32 content::PageNavigator* navigator,
30 bool auto_update_enabled); 33 bool auto_update_enabled);
31 34
32 // Identifies if we are running a build that supports the 35 // Identifies if we are running a build that supports the
33 // outdated upgrade bubble view. 36 // outdated upgrade bubble view.
34 static bool IsAvailable(); 37 static bool IsAvailable();
35 38
36 // views::BubbleDelegateView method. 39 // views::BubbleDelegateView method.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 82
80 // The PageNavigator to use for opening the Download Chrome URL. 83 // The PageNavigator to use for opening the Download Chrome URL.
81 content::PageNavigator* navigator_; 84 content::PageNavigator* navigator_;
82 85
83 scoped_ptr<ElevationIconSetter> elevation_icon_setter_; 86 scoped_ptr<ElevationIconSetter> elevation_icon_setter_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(OutdatedUpgradeBubbleView); 88 DISALLOW_COPY_AND_ASSIGN(OutdatedUpgradeBubbleView);
86 }; 89 };
87 90
88 #endif // CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_ 91 #endif // CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698