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_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 10 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 private: | 42 private: |
43 void CreateButtons(); | 43 void CreateButtons(); |
44 void LayoutButtons(); | 44 void LayoutButtons(); |
45 | 45 |
46 // Updates the visibility of the pin/unpin buttons so that only one is visible | 46 // Updates the visibility of the pin/unpin buttons so that only one is visible |
47 // at a time. | 47 // at a time. |
48 void UpdatePinButtons(); | 48 void UpdatePinButtons(); |
49 | 49 |
50 // Overridden from views::ButtonListener: | 50 // Overridden from views::ButtonListener: |
51 virtual void ButtonPressed(views::Button* sender, | 51 virtual void ButtonPressed(views::Button* sender, |
52 const ui::Event& event) OVERRIDE; | 52 const ui::Event& event) override; |
53 | 53 |
54 // Overridden from ExtensionUninstallDialog::Delegate: | 54 // Overridden from ExtensionUninstallDialog::Delegate: |
55 virtual void ExtensionUninstallAccepted() OVERRIDE; | 55 virtual void ExtensionUninstallAccepted() override; |
56 virtual void ExtensionUninstallCanceled() OVERRIDE; | 56 virtual void ExtensionUninstallCanceled() override; |
57 | 57 |
58 // Create Shortcuts for the app. Must only be called if CanCreateShortcuts() | 58 // Create Shortcuts for the app. Must only be called if CanCreateShortcuts() |
59 // returns true. | 59 // returns true. |
60 void CreateShortcuts(); | 60 void CreateShortcuts(); |
61 bool CanCreateShortcuts() const; | 61 bool CanCreateShortcuts() const; |
62 | 62 |
63 // Pins and unpins the app from the shelf. Must only be called if | 63 // Pins and unpins the app from the shelf. Must only be called if |
64 // CanSetPinnedToShelf() returns true. | 64 // CanSetPinnedToShelf() returns true. |
65 void SetPinnedToShelf(bool value); | 65 void SetPinnedToShelf(bool value); |
66 bool CanSetPinnedToShelf() const; | 66 bool CanSetPinnedToShelf() const; |
(...skipping 11 matching lines...) Expand all Loading... |
78 views::LabelButton* remove_button_; | 78 views::LabelButton* remove_button_; |
79 | 79 |
80 scoped_ptr<extensions::ExtensionUninstallDialog> extension_uninstall_dialog_; | 80 scoped_ptr<extensions::ExtensionUninstallDialog> extension_uninstall_dialog_; |
81 | 81 |
82 base::WeakPtrFactory<AppInfoFooterPanel> weak_ptr_factory_; | 82 base::WeakPtrFactory<AppInfoFooterPanel> weak_ptr_factory_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(AppInfoFooterPanel); | 84 DISALLOW_COPY_AND_ASSIGN(AppInfoFooterPanel); |
85 }; | 85 }; |
86 | 86 |
87 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ | 87 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_FOOTER_PANEL_H_ |
OLD | NEW |