| 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 11 matching lines...) Expand all Loading... |
| 22 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
| 23 #include "ui/aura/window_event_dispatcher.h" | 23 #include "ui/aura/window_event_dispatcher.h" |
| 24 #include "ui/base/nine_image_painter_factory.h" | 24 #include "ui/base/nine_image_painter_factory.h" |
| 25 #include "ui/base/ui_base_switches_util.h" | 25 #include "ui/base/ui_base_switches_util.h" |
| 26 #include "ui/compositor/layer.h" | 26 #include "ui/compositor/layer.h" |
| 27 #include "ui/compositor/layer_animation_element.h" | 27 #include "ui/compositor/layer_animation_element.h" |
| 28 #include "ui/compositor/scoped_layer_animation_settings.h" | 28 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 29 #include "ui/events/event_constants.h" | 29 #include "ui/events/event_constants.h" |
| 30 #include "ui/gfx/animation/tween.h" | 30 #include "ui/gfx/animation/tween.h" |
| 31 #include "ui/gfx/canvas.h" | 31 #include "ui/gfx/canvas.h" |
| 32 #include "ui/gfx/geometry/rect.h" |
| 32 #include "ui/gfx/image/image_skia.h" | 33 #include "ui/gfx/image/image_skia.h" |
| 33 #include "ui/gfx/image/image_skia_operations.h" | 34 #include "ui/gfx/image/image_skia_operations.h" |
| 34 #include "ui/gfx/nine_image_painter.h" | 35 #include "ui/gfx/nine_image_painter.h" |
| 35 #include "ui/gfx/rect.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 | 41 |
| 42 namespace { | 42 namespace { |
| 43 | 43 |
| 44 const int kTrayBackgroundAlpha = 100; | 44 const int kTrayBackgroundAlpha = 100; |
| 45 const int kTrayBackgroundHoverAlpha = 150; | 45 const int kTrayBackgroundHoverAlpha = 150; |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 background_->set_alpha(kTrayBackgroundAlpha); | 581 background_->set_alpha(kTrayBackgroundAlpha); |
| 582 SchedulePaint(); | 582 SchedulePaint(); |
| 583 } | 583 } |
| 584 | 584 |
| 585 void TrayBackgroundView::UpdateBubbleViewArrow( | 585 void TrayBackgroundView::UpdateBubbleViewArrow( |
| 586 views::TrayBubbleView* bubble_view) { | 586 views::TrayBubbleView* bubble_view) { |
| 587 // Nothing to do here. | 587 // Nothing to do here. |
| 588 } | 588 } |
| 589 | 589 |
| 590 } // namespace ash | 590 } // namespace ash |
| OLD | NEW |