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) && !defined(USE_AURA) | 10 #if defined(OS_WIN) && !defined(USE_AURA) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 int NativeFrameView::NonClientHitTest(const gfx::Point& point) { | 49 int NativeFrameView::NonClientHitTest(const gfx::Point& point) { |
50 return frame_->client_view()->NonClientHitTest(point); | 50 return frame_->client_view()->NonClientHitTest(point); |
51 } | 51 } |
52 | 52 |
53 void NativeFrameView::GetWindowMask(const gfx::Size& size, | 53 void NativeFrameView::GetWindowMask(const gfx::Size& size, |
54 gfx::Path* window_mask) { | 54 gfx::Path* window_mask) { |
55 // Nothing to do, we use the default window mask. | 55 // Nothing to do, we use the default window mask. |
56 } | 56 } |
57 | 57 |
58 void NativeFrameView::EnableClose(bool enable) { | |
59 // Nothing to do, handled automatically by Window. | |
60 } | |
61 | |
62 void NativeFrameView::ResetWindowControls() { | 58 void NativeFrameView::ResetWindowControls() { |
63 // Nothing to do. | 59 // Nothing to do. |
64 } | 60 } |
65 | 61 |
66 void NativeFrameView::UpdateWindowIcon() { | 62 void NativeFrameView::UpdateWindowIcon() { |
67 // Nothing to do. | 63 // Nothing to do. |
68 } | 64 } |
69 | 65 |
70 gfx::Size NativeFrameView::GetPreferredSize() { | 66 gfx::Size NativeFrameView::GetPreferredSize() { |
71 return frame_->client_view()->GetPreferredSize(); | 67 return frame_->client_view()->GetPreferredSize(); |
72 } | 68 } |
73 | 69 |
74 } // namespace views | 70 } // namespace views |
OLD | NEW |