| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "ui/views/window/dialog_client_view.h" | 51 #include "ui/views/window/dialog_client_view.h" |
| 52 #include "ui/views/window/dialog_delegate.h" | 52 #include "ui/views/window/dialog_delegate.h" |
| 53 | 53 |
| 54 using content::OpenURLParams; | 54 using content::OpenURLParams; |
| 55 using content::Referrer; | 55 using content::Referrer; |
| 56 using extensions::BundleInstaller; | 56 using extensions::BundleInstaller; |
| 57 | 57 |
| 58 namespace { | 58 namespace { |
| 59 | 59 |
| 60 // Size of extension icon in top left of dialog. | 60 // Size of extension icon in top left of dialog. |
| 61 const int kIconSize = 69; | 61 const int kIconSize = 64; |
| 62 | 62 |
| 63 // We offset the icon a little bit from the right edge of the dialog, to make it | 63 // We offset the icon a little bit from the right edge of the dialog, to make it |
| 64 // align with the button below it. | 64 // align with the button below it. |
| 65 const int kIconOffset = 16; | 65 const int kIconOffset = 16; |
| 66 | 66 |
| 67 // The dialog will resize based on its content, but this sets a maximum height | 67 // The dialog will resize based on its content, but this sets a maximum height |
| 68 // before overflowing a scrollbar. | 68 // before overflowing a scrollbar. |
| 69 const int kDialogMaxHeight = 300; | 69 const int kDialogMaxHeight = 300; |
| 70 | 70 |
| 71 // Width of the left column of the dialog when the extension requests | 71 // Width of the left column of the dialog when the extension requests |
| (...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 if (slide_animation_.IsShowing()) | 1276 if (slide_animation_.IsShowing()) |
| 1277 slide_animation_.Hide(); | 1277 slide_animation_.Hide(); |
| 1278 else | 1278 else |
| 1279 slide_animation_.Show(); | 1279 slide_animation_.Show(); |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 void ExpandableContainerView::ExpandWithoutAnimation() { | 1282 void ExpandableContainerView::ExpandWithoutAnimation() { |
| 1283 expanded_ = true; | 1283 expanded_ = true; |
| 1284 details_view_->AnimateToState(1.0); | 1284 details_view_->AnimateToState(1.0); |
| 1285 } | 1285 } |
| OLD | NEW |