| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 private: | 178 private: |
| 179 views::GridLayout* layout_; | 179 views::GridLayout* layout_; |
| 180 double state_; | 180 double state_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(DetailsView); | 182 DISALLOW_COPY_AND_ASSIGN(DetailsView); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Expand/Collapse the detail section for this ExpandableContainerView. | 185 // Expand/Collapse the detail section for this ExpandableContainerView. |
| 186 void ToggleDetailLevel(); | 186 void ToggleDetailLevel(); |
| 187 | 187 |
| 188 // Updates |arrow_toggle_| according to the given state. |
| 189 void UpdateArrowToggle(bool expanded); |
| 190 |
| 188 // The dialog that owns |this|. It's also an ancestor in the View hierarchy. | 191 // The dialog that owns |this|. It's also an ancestor in the View hierarchy. |
| 189 ExtensionInstallDialogView* owner_; | 192 ExtensionInstallDialogView* owner_; |
| 190 | 193 |
| 191 // A view for showing |issue_advice.details|. | 194 // A view for showing |issue_advice.details|. |
| 192 DetailsView* details_view_; | 195 DetailsView* details_view_; |
| 193 | 196 |
| 194 gfx::SlideAnimation slide_animation_; | 197 gfx::SlideAnimation slide_animation_; |
| 195 | 198 |
| 196 // The 'more details' link shown under the heading (changes to 'hide details' | 199 // The 'more details' link shown under the heading (changes to 'hide details' |
| 197 // when the details section is expanded). | 200 // when the details section is expanded). |
| 198 views::Link* more_details_; | 201 views::Link* more_details_; |
| 199 | 202 |
| 200 // The up/down arrow next to the 'more detail' link (points up/down depending | 203 // The up/down arrow next to the 'more detail' link (points up/down depending |
| 201 // on whether the details section is expanded). | 204 // on whether the details section is expanded). |
| 202 views::ImageButton* arrow_toggle_; | 205 views::ImageButton* arrow_toggle_; |
| 203 | 206 |
| 204 // Whether the details section is expanded. | 207 // Whether the details section is expanded. |
| 205 bool expanded_; | 208 bool expanded_; |
| 206 | 209 |
| 207 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); | 210 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); |
| 208 }; | 211 }; |
| 209 | 212 |
| 210 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ | 213 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ |
| OLD | NEW |