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 "chrome/browser/extensions/extension_install_prompt.h" | 8 #include "chrome/browser/extensions/extension_install_prompt.h" |
9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
10 #include "ui/gfx/animation/slide_animation.h" | 10 #include "ui/gfx/animation/slide_animation.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // A simple view that prepends a view with a bullet with the help of a grid | 141 // A simple view that prepends a view with a bullet with the help of a grid |
142 // layout. | 142 // layout. |
143 class BulletedView : public views::View { | 143 class BulletedView : public views::View { |
144 public: | 144 public: |
145 explicit BulletedView(views::View* view); | 145 explicit BulletedView(views::View* view); |
146 private: | 146 private: |
147 DISALLOW_COPY_AND_ASSIGN(BulletedView); | 147 DISALLOW_COPY_AND_ASSIGN(BulletedView); |
148 }; | 148 }; |
149 | 149 |
| 150 // A simple view that prepends a view with an icon with the help of a grid |
| 151 // layout. |
| 152 class IconedView : public views::View { |
| 153 public: |
| 154 IconedView(views::View* view, const gfx::ImageSkia& image); |
| 155 private: |
| 156 DISALLOW_COPY_AND_ASSIGN(IconedView); |
| 157 }; |
| 158 |
150 // A view to display text with an expandable details section. | 159 // A view to display text with an expandable details section. |
151 class ExpandableContainerView : public views::View, | 160 class ExpandableContainerView : public views::View, |
152 public views::ButtonListener, | 161 public views::ButtonListener, |
153 public views::LinkListener, | 162 public views::LinkListener, |
154 public gfx::AnimationDelegate { | 163 public gfx::AnimationDelegate { |
155 public: | 164 public: |
156 ExpandableContainerView(ExtensionInstallDialogView* owner, | 165 ExpandableContainerView(ExtensionInstallDialogView* owner, |
157 const base::string16& description, | 166 const base::string16& description, |
158 const PermissionDetails& details, | 167 const PermissionDetails& details, |
159 int horizontal_space, | 168 int horizontal_space, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 228 |
220 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); | 229 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); |
221 }; | 230 }; |
222 | 231 |
223 void ShowExtensionInstallDialogImpl( | 232 void ShowExtensionInstallDialogImpl( |
224 ExtensionInstallPromptShowParams* show_params, | 233 ExtensionInstallPromptShowParams* show_params, |
225 ExtensionInstallPrompt::Delegate* delegate, | 234 ExtensionInstallPrompt::Delegate* delegate, |
226 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); | 235 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); |
227 | 236 |
228 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ | 237 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ |
OLD | NEW |