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/wm/panels/panel_frame_view.h" | 5 #include "ash/wm/panels/panel_frame_view.h" |
6 | 6 |
7 #include "ash/wm/frame_painter.h" | 7 #include "ash/wm/frame_painter.h" |
8 #include "ash/wm/workspace/frame_caption_button_container_view.h" | 8 #include "ash/wm/workspace/frame_caption_button_container_view.h" |
9 #include "grit/ash_resources.h" | 9 #include "grit/ash_resources.h" |
10 #include "third_party/skia/include/core/SkPaint.h" | 10 #include "third_party/skia/include/core/SkPaint.h" |
11 #include "ui/base/animation/throb_animation.h" | |
12 #include "ui/base/cursor/cursor.h" | 11 #include "ui/base/cursor/cursor.h" |
13 #include "ui/base/hit_test.h" | 12 #include "ui/base/hit_test.h" |
14 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
15 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
| 15 #include "ui/gfx/animation/throb_animation.h" |
16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
17 #include "ui/gfx/font.h" | 17 #include "ui/gfx/font.h" |
18 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
19 #include "ui/views/controls/image_view.h" | 19 #include "ui/views/controls/image_view.h" |
20 #include "ui/views/widget/native_widget_aura.h" | 20 #include "ui/views/widget/native_widget_aura.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 #include "ui/views/widget/widget_delegate.h" | 22 #include "ui/views/widget/widget_delegate.h" |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 | 25 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 gfx::Rect PanelFrameView::GetWindowBoundsForClientBounds( | 131 gfx::Rect PanelFrameView::GetWindowBoundsForClientBounds( |
132 const gfx::Rect& client_bounds) const { | 132 const gfx::Rect& client_bounds) const { |
133 if (!frame_painter_) | 133 if (!frame_painter_) |
134 return client_bounds; | 134 return client_bounds; |
135 return frame_painter_->GetWindowBoundsForClientBounds( | 135 return frame_painter_->GetWindowBoundsForClientBounds( |
136 caption_button_container_->bounds().bottom(), client_bounds); | 136 caption_button_container_->bounds().bottom(), client_bounds); |
137 } | 137 } |
138 | 138 |
139 } // namespace ash | 139 } // namespace ash |
OLD | NEW |