OLD | NEW |
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/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/bubble/bubble_dialog_delegate.h" | 9 #include "ui/views/bubble/bubble_dialog_delegate.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 content::PageNavigator* navigator, | 24 content::PageNavigator* navigator, |
25 bool auto_update_enabled); | 25 bool auto_update_enabled); |
26 | 26 |
27 // Identifies if we are running a build that supports the | 27 // Identifies if we are running a build that supports the |
28 // outdated upgrade bubble view. | 28 // outdated upgrade bubble view. |
29 static bool IsAvailable(); | 29 static bool IsAvailable(); |
30 | 30 |
31 // views::BubbleDialogDelegateView methods. | 31 // views::BubbleDialogDelegateView methods. |
32 void WindowClosing() override; | 32 void WindowClosing() override; |
33 base::string16 GetWindowTitle() const override; | 33 base::string16 GetWindowTitle() const override; |
34 gfx::ImageSkia GetWindowIcon() override; | |
35 bool ShouldShowWindowIcon() const override; | |
36 bool Cancel() override; | 34 bool Cancel() override; |
37 bool Accept() override; | 35 bool Accept() override; |
38 void UpdateButton(views::LabelButton* button, ui::DialogButton type) override; | 36 void UpdateButton(views::LabelButton* button, ui::DialogButton type) override; |
39 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 37 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
40 void Init() override; | 38 void Init() override; |
41 | 39 |
42 private: | 40 private: |
43 OutdatedUpgradeBubbleView(views::View* anchor_view, | 41 OutdatedUpgradeBubbleView(views::View* anchor_view, |
44 content::PageNavigator* navigator, | 42 content::PageNavigator* navigator, |
45 bool auto_update_enabled); | 43 bool auto_update_enabled); |
46 ~OutdatedUpgradeBubbleView() override; | 44 ~OutdatedUpgradeBubbleView() override; |
47 | 45 |
48 // Identifies if auto-update is enabled or not. | 46 // Identifies if auto-update is enabled or not. |
49 bool auto_update_enabled_; | 47 bool auto_update_enabled_; |
50 | 48 |
51 // The PageNavigator to use for opening the Download Chrome URL. | 49 // The PageNavigator to use for opening the Download Chrome URL. |
52 content::PageNavigator* navigator_; | 50 content::PageNavigator* navigator_; |
53 | 51 |
54 std::unique_ptr<ElevationIconSetter> elevation_icon_setter_; | 52 std::unique_ptr<ElevationIconSetter> elevation_icon_setter_; |
55 | 53 |
56 DISALLOW_COPY_AND_ASSIGN(OutdatedUpgradeBubbleView); | 54 DISALLOW_COPY_AND_ASSIGN(OutdatedUpgradeBubbleView); |
57 }; | 55 }; |
58 | 56 |
59 #endif // CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_OUTDATED_UPGRADE_BUBBLE_VIEW_H_ |
OLD | NEW |