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/common/system/tray/tray_background_view.h" | 5 #include "ash/common/system/tray/tray_background_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/common/ash_constants.h" | 9 #include "ash/common/ash_constants.h" |
10 #include "ash/common/material_design/material_design_controller.h" | 10 #include "ash/common/material_design/material_design_controller.h" |
11 #include "ash/common/shelf/shelf_constants.h" | 11 #include "ash/common/shelf/shelf_constants.h" |
12 #include "ash/common/shelf/wm_shelf.h" | 12 #include "ash/common/shelf/wm_shelf.h" |
13 #include "ash/common/shelf/wm_shelf_util.h" | 13 #include "ash/common/shelf/wm_shelf_util.h" |
14 #include "ash/common/system/tray/system_tray.h" | 14 #include "ash/common/system/tray/system_tray.h" |
15 #include "ash/common/system/tray/tray_constants.h" | 15 #include "ash/common/system/tray/tray_constants.h" |
16 #include "ash/common/system/tray/tray_event_filter.h" | 16 #include "ash/common/system/tray/tray_event_filter.h" |
17 #include "ash/common/wm_lookup.h" | 17 #include "ash/common/wm_lookup.h" |
18 #include "ash/common/wm_shell.h" | 18 #include "ash/common/wm_shell.h" |
19 #include "ash/common/wm_window.h" | 19 #include "ash/common/wm_window.h" |
20 #include "ash/public/cpp/shell_window_ids.h" | 20 #include "ash/public/cpp/shell_window_ids.h" |
| 21 #include "base/memory/ptr_util.h" |
21 #include "grit/ash_resources.h" | 22 #include "grit/ash_resources.h" |
22 #include "ui/accessibility/ax_node_data.h" | 23 #include "ui/accessibility/ax_node_data.h" |
23 #include "ui/base/nine_image_painter_factory.h" | 24 #include "ui/base/nine_image_painter_factory.h" |
24 #include "ui/compositor/layer.h" | 25 #include "ui/compositor/layer.h" |
25 #include "ui/compositor/layer_animation_element.h" | 26 #include "ui/compositor/layer_animation_element.h" |
26 #include "ui/compositor/scoped_layer_animation_settings.h" | 27 #include "ui/compositor/scoped_layer_animation_settings.h" |
27 #include "ui/events/event_constants.h" | 28 #include "ui/events/event_constants.h" |
28 #include "ui/gfx/animation/tween.h" | 29 #include "ui/gfx/animation/tween.h" |
29 #include "ui/gfx/canvas.h" | 30 #include "ui/gfx/canvas.h" |
30 #include "ui/gfx/geometry/rect.h" | 31 #include "ui/gfx/geometry/rect.h" |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 } | 631 } |
631 | 632 |
632 gfx::Rect TrayBackgroundView::GetBackgroundBounds() const { | 633 gfx::Rect TrayBackgroundView::GetBackgroundBounds() const { |
633 gfx::Insets insets = GetBackgroundInsets(); | 634 gfx::Insets insets = GetBackgroundInsets(); |
634 gfx::Rect bounds = GetLocalBounds(); | 635 gfx::Rect bounds = GetLocalBounds(); |
635 bounds.Inset(insets); | 636 bounds.Inset(insets); |
636 return bounds; | 637 return bounds; |
637 } | 638 } |
638 | 639 |
639 } // namespace ash | 640 } // namespace ash |
OLD | NEW |