| 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 "ash/system/drive/tray_drive.h" | 5 #include "ash/system/drive/tray_drive.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/metrics/user_metrics_recorder.h" | 9 #include "ash/metrics/user_metrics_recorder.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "ui/gfx/image/image.h" | 29 #include "ui/gfx/image/image.h" |
| 30 #include "ui/views/controls/button/image_button.h" | 30 #include "ui/views/controls/button/image_button.h" |
| 31 #include "ui/views/controls/image_view.h" | 31 #include "ui/views/controls/image_view.h" |
| 32 #include "ui/views/controls/label.h" | 32 #include "ui/views/controls/label.h" |
| 33 #include "ui/views/controls/progress_bar.h" | 33 #include "ui/views/controls/progress_bar.h" |
| 34 #include "ui/views/layout/box_layout.h" | 34 #include "ui/views/layout/box_layout.h" |
| 35 #include "ui/views/layout/grid_layout.h" | 35 #include "ui/views/layout/grid_layout.h" |
| 36 #include "ui/views/widget/widget.h" | 36 #include "ui/views/widget/widget.h" |
| 37 | 37 |
| 38 namespace ash { | 38 namespace ash { |
| 39 | |
| 40 namespace internal { | |
| 41 | |
| 42 namespace { | 39 namespace { |
| 43 | 40 |
| 44 const int kSidePadding = 8; | 41 const int kSidePadding = 8; |
| 45 const int kHorizontalPadding = 6; | 42 const int kHorizontalPadding = 6; |
| 46 const int kVerticalPadding = 6; | 43 const int kVerticalPadding = 6; |
| 47 const int kTopPadding = 6; | 44 const int kTopPadding = 6; |
| 48 const int kBottomPadding = 10; | 45 const int kBottomPadding = 10; |
| 49 const int kProgressBarWidth = 100; | 46 const int kProgressBarWidth = 100; |
| 50 const int kProgressBarHeight = 11; | 47 const int kProgressBarHeight = 11; |
| 51 const int64 kHideDelayInMs = 1000; | 48 const int64 kHideDelayInMs = 1000; |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 void TrayDrive::HideIfNoOperations() { | 505 void TrayDrive::HideIfNoOperations() { |
| 509 DriveOperationStatusList empty_list; | 506 DriveOperationStatusList empty_list; |
| 510 | 507 |
| 511 tray_view()->SetVisible(false); | 508 tray_view()->SetVisible(false); |
| 512 if (default_) | 509 if (default_) |
| 513 default_->Update(&empty_list); | 510 default_->Update(&empty_list); |
| 514 if (detailed_) | 511 if (detailed_) |
| 515 detailed_->Update(&empty_list); | 512 detailed_->Update(&empty_list); |
| 516 } | 513 } |
| 517 | 514 |
| 518 } // namespace internal | |
| 519 } // namespace ash | 515 } // namespace ash |
| OLD | NEW |