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_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/extensions/extension_install_prompt.h" | 9 #include "chrome/browser/extensions/extension_install_prompt.h" |
10 #include "ui/gfx/animation/animation_delegate.h" | 10 #include "ui/gfx/animation/animation_delegate.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 55 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
56 | 56 |
57 // views::DialogDelegateView: | 57 // views::DialogDelegateView: |
58 int GetDialogButtons() const override; | 58 int GetDialogButtons() const override; |
59 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 59 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
60 int GetDefaultDialogButton() const override; | 60 int GetDefaultDialogButton() const override; |
61 bool Cancel() override; | 61 bool Cancel() override; |
62 bool Accept() override; | 62 bool Accept() override; |
63 ui::ModalType GetModalType() const override; | 63 ui::ModalType GetModalType() const override; |
64 void Layout() override; | 64 void Layout() override; |
65 gfx::Size GetPreferredSize() const override; | 65 gfx::Size GetUnsnappedPreferredSize() const override; |
66 views::View* CreateExtraView() override; | 66 views::View* CreateExtraView() override; |
67 | 67 |
68 // views::LinkListener: | 68 // views::LinkListener: |
69 void LinkClicked(views::Link* source, int event_flags) override; | 69 void LinkClicked(views::Link* source, int event_flags) override; |
70 | 70 |
71 // Initializes the dialog view, adding in permissions if they exist. | 71 // Initializes the dialog view, adding in permissions if they exist. |
72 void InitView(); | 72 void InitView(); |
73 | 73 |
74 // Adds permissions of |perm_type| to the dialog view if they exist. | 74 // Adds permissions of |perm_type| to the dialog view if they exist. |
75 bool AddPermissions(views::GridLayout* layout, | 75 bool AddPermissions(views::GridLayout* layout, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // on whether the details section is expanded). | 189 // on whether the details section is expanded). |
190 views::ImageButton* arrow_toggle_; | 190 views::ImageButton* arrow_toggle_; |
191 | 191 |
192 // Whether the details section is expanded. | 192 // Whether the details section is expanded. |
193 bool expanded_; | 193 bool expanded_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); | 195 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); |
196 }; | 196 }; |
197 | 197 |
198 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ | 198 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ |
OLD | NEW |