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 "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 window_icon_->SetImage(delegate->GetWindowIcon()); | 90 window_icon_->SetImage(delegate->GetWindowIcon()); |
91 window_icon_->SchedulePaint(); | 91 window_icon_->SchedulePaint(); |
92 } | 92 } |
93 | 93 |
94 void PanelFrameView::UpdateWindowTitle() { | 94 void PanelFrameView::UpdateWindowTitle() { |
95 if (!header_painter_) | 95 if (!header_painter_) |
96 return; | 96 return; |
97 header_painter_->SchedulePaintForTitle(); | 97 header_painter_->SchedulePaintForTitle(); |
98 } | 98 } |
99 | 99 |
| 100 void PanelFrameView::SizeConstraintsChanged() { |
| 101 } |
| 102 |
100 int PanelFrameView::NonClientHitTest(const gfx::Point& point) { | 103 int PanelFrameView::NonClientHitTest(const gfx::Point& point) { |
101 if (!header_painter_) | 104 if (!header_painter_) |
102 return HTNOWHERE; | 105 return HTNOWHERE; |
103 return FrameBorderHitTestController::NonClientHitTest(this, | 106 return FrameBorderHitTestController::NonClientHitTest(this, |
104 caption_button_container_, point); | 107 caption_button_container_, point); |
105 } | 108 } |
106 | 109 |
107 void PanelFrameView::OnPaint(gfx::Canvas* canvas) { | 110 void PanelFrameView::OnPaint(gfx::Canvas* canvas) { |
108 if (!header_painter_) | 111 if (!header_painter_) |
109 return; | 112 return; |
(...skipping 12 matching lines...) Expand all Loading... |
122 } | 125 } |
123 | 126 |
124 gfx::Rect PanelFrameView::GetWindowBoundsForClientBounds( | 127 gfx::Rect PanelFrameView::GetWindowBoundsForClientBounds( |
125 const gfx::Rect& client_bounds) const { | 128 const gfx::Rect& client_bounds) const { |
126 gfx::Rect window_bounds = client_bounds; | 129 gfx::Rect window_bounds = client_bounds; |
127 window_bounds.Inset(0, -NonClientTopBorderHeight(), 0, 0); | 130 window_bounds.Inset(0, -NonClientTopBorderHeight(), 0, 0); |
128 return window_bounds; | 131 return window_bounds; |
129 } | 132 } |
130 | 133 |
131 } // namespace ash | 134 } // namespace ash |
OLD | NEW |