OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/views/window/native_frame_view.h" | 5 #include "ui/views/window/native_frame_view.h" |
6 | 6 |
7 #include "ui/views/widget/native_widget.h" | 7 #include "ui/views/widget/native_widget.h" |
8 #include "ui/views/widget/widget.h" | 8 #include "ui/views/widget/widget.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 24 matching lines...) Expand all Loading... |
35 const gfx::Rect& client_bounds) const { | 35 const gfx::Rect& client_bounds) const { |
36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
37 return views::GetWindowBoundsForClientBounds( | 37 return views::GetWindowBoundsForClientBounds( |
38 static_cast<View*>(const_cast<NativeFrameView*>(this)), client_bounds); | 38 static_cast<View*>(const_cast<NativeFrameView*>(this)), client_bounds); |
39 #else | 39 #else |
40 // TODO(sad): | 40 // TODO(sad): |
41 return client_bounds; | 41 return client_bounds; |
42 #endif | 42 #endif |
43 } | 43 } |
44 | 44 |
45 int NativeFrameView::NonClientHitTest(const gfx::Point& point) { | 45 int NativeFrameView::NonClientHitTest(const gfx::Point& point) const { |
46 return frame_->client_view()->NonClientHitTest(point); | 46 return frame_->client_view()->NonClientHitTest(point); |
47 } | 47 } |
48 | 48 |
49 void NativeFrameView::GetWindowMask(const gfx::Size& size, | 49 void NativeFrameView::GetWindowMask(const gfx::Size& size, |
50 gfx::Path* window_mask) { | 50 gfx::Path* window_mask) { |
51 // Nothing to do, we use the default window mask. | 51 // Nothing to do, we use the default window mask. |
52 } | 52 } |
53 | 53 |
54 void NativeFrameView::ResetWindowControls() { | 54 void NativeFrameView::ResetWindowControls() { |
55 // Nothing to do. | 55 // Nothing to do. |
(...skipping 17 matching lines...) Expand all Loading... |
73 | 73 |
74 gfx::Size NativeFrameView::GetMinimumSize() { | 74 gfx::Size NativeFrameView::GetMinimumSize() { |
75 return frame_->client_view()->GetMinimumSize(); | 75 return frame_->client_view()->GetMinimumSize(); |
76 } | 76 } |
77 | 77 |
78 gfx::Size NativeFrameView::GetMaximumSize() { | 78 gfx::Size NativeFrameView::GetMaximumSize() { |
79 return frame_->client_view()->GetMaximumSize(); | 79 return frame_->client_view()->GetMaximumSize(); |
80 } | 80 } |
81 | 81 |
82 } // namespace views | 82 } // namespace views |
OLD | NEW |