| 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/tray/tray_background_view.h" | 5 #include "ash/system/tray/tray_background_view.h" |
| 6 | 6 |
| 7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/screen_util.h" | 8 #include "ash/screen_util.h" |
| 9 #include "ash/shelf/shelf_layout_manager.h" | 9 #include "ash/shelf/shelf_layout_manager.h" |
| 10 #include "ash/shelf/shelf_widget.h" | 10 #include "ash/shelf/shelf_widget.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "ui/gfx/canvas.h" | 31 #include "ui/gfx/canvas.h" |
| 32 #include "ui/gfx/geometry/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
| 33 #include "ui/gfx/image/image_skia.h" | 33 #include "ui/gfx/image/image_skia.h" |
| 34 #include "ui/gfx/image/image_skia_operations.h" | 34 #include "ui/gfx/image/image_skia_operations.h" |
| 35 #include "ui/gfx/nine_image_painter.h" | 35 #include "ui/gfx/nine_image_painter.h" |
| 36 #include "ui/gfx/screen.h" | 36 #include "ui/gfx/screen.h" |
| 37 #include "ui/gfx/skia_util.h" | 37 #include "ui/gfx/skia_util.h" |
| 38 #include "ui/gfx/transform.h" | 38 #include "ui/gfx/transform.h" |
| 39 #include "ui/views/background.h" | 39 #include "ui/views/background.h" |
| 40 #include "ui/views/layout/box_layout.h" | 40 #include "ui/views/layout/box_layout.h" |
| 41 #include "ui/wm/core/window_animations.h" |
| 41 | 42 |
| 42 namespace { | 43 namespace { |
| 43 | 44 |
| 44 const int kTrayBackgroundAlpha = 100; | 45 const int kTrayBackgroundAlpha = 100; |
| 45 const int kTrayBackgroundHoverAlpha = 150; | 46 const int kTrayBackgroundHoverAlpha = 150; |
| 46 const SkColor kTrayBackgroundPressedColor = SkColorSetRGB(66, 129, 244); | 47 const SkColor kTrayBackgroundPressedColor = SkColorSetRGB(66, 129, 244); |
| 47 | 48 |
| 48 const int kAnimationDurationForPopupMs = 200; | 49 const int kAnimationDurationForPopupMs = 200; |
| 49 | 50 |
| 50 // Duration of opacity animation for visibility changes. | 51 // Duration of opacity animation for visibility changes. |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 background_->set_alpha(kTrayBackgroundAlpha); | 587 background_->set_alpha(kTrayBackgroundAlpha); |
| 587 SchedulePaint(); | 588 SchedulePaint(); |
| 588 } | 589 } |
| 589 | 590 |
| 590 void TrayBackgroundView::UpdateBubbleViewArrow( | 591 void TrayBackgroundView::UpdateBubbleViewArrow( |
| 591 views::TrayBubbleView* bubble_view) { | 592 views::TrayBubbleView* bubble_view) { |
| 592 // Nothing to do here. | 593 // Nothing to do here. |
| 593 } | 594 } |
| 594 | 595 |
| 595 } // namespace ash | 596 } // namespace ash |
| OLD | NEW |