| 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/frame/caption_buttons/frame_caption_button_container_view.h" | 7 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
| 8 #include "ash/frame/default_header_painter.h" | 8 #include "ash/frame/default_header_painter.h" |
| 9 #include "ash/frame/frame_border_hit_test_controller.h" | 9 #include "ash/frame/frame_border_hit_test_controller.h" |
| 10 #include "grit/ash_resources.h" | |
| 11 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | |
| 13 #include "ui/gfx/canvas.h" | 11 #include "ui/gfx/canvas.h" |
| 14 #include "ui/views/controls/image_view.h" | 12 #include "ui/views/controls/image_view.h" |
| 15 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
| 16 #include "ui/views/widget/widget_delegate.h" | 14 #include "ui/views/widget/widget_delegate.h" |
| 17 | 15 |
| 18 namespace ash { | 16 namespace ash { |
| 19 | 17 |
| 20 // static | 18 // static |
| 21 const char PanelFrameView::kViewClassName[] = "PanelFrameView"; | 19 const char PanelFrameView::kViewClassName[] = "PanelFrameView"; |
| 22 | 20 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 121 } |
| 124 | 122 |
| 125 gfx::Rect PanelFrameView::GetWindowBoundsForClientBounds( | 123 gfx::Rect PanelFrameView::GetWindowBoundsForClientBounds( |
| 126 const gfx::Rect& client_bounds) const { | 124 const gfx::Rect& client_bounds) const { |
| 127 gfx::Rect window_bounds = client_bounds; | 125 gfx::Rect window_bounds = client_bounds; |
| 128 window_bounds.Inset(0, -NonClientTopBorderHeight(), 0, 0); | 126 window_bounds.Inset(0, -NonClientTopBorderHeight(), 0, 0); |
| 129 return window_bounds; | 127 return window_bounds; |
| 130 } | 128 } |
| 131 | 129 |
| 132 } // namespace ash | 130 } // namespace ash |
| OLD | NEW |