| 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/non_client_view.h" | 5 #include "ui/views/window/non_client_view.h" |
| 6 | 6 |
| 7 #include "ui/base/accessibility/accessible_view_state.h" | 7 #include "ui/base/accessibility/accessible_view_state.h" |
| 8 #include "ui/base/hit_test.h" | 8 #include "ui/base/hit_test.h" |
| 9 #include "ui/views/widget/root_view.h" | 9 #include "ui/views/widget/root_view.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 int NonClientView::NonClientHitTest(const gfx::Point& point) { | 80 int NonClientView::NonClientHitTest(const gfx::Point& point) { |
| 81 // The NonClientFrameView is responsible for also asking the ClientView. | 81 // The NonClientFrameView is responsible for also asking the ClientView. |
| 82 return frame_view_->NonClientHitTest(point); | 82 return frame_view_->NonClientHitTest(point); |
| 83 } | 83 } |
| 84 | 84 |
| 85 void NonClientView::GetWindowMask(const gfx::Size& size, | 85 void NonClientView::GetWindowMask(const gfx::Size& size, |
| 86 gfx::Path* window_mask) { | 86 gfx::Path* window_mask) { |
| 87 frame_view_->GetWindowMask(size, window_mask); | 87 frame_view_->GetWindowMask(size, window_mask); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void NonClientView::EnableClose(bool enable) { |
| 91 frame_view_->EnableClose(enable); |
| 92 } |
| 93 |
| 90 void NonClientView::ResetWindowControls() { | 94 void NonClientView::ResetWindowControls() { |
| 91 frame_view_->ResetWindowControls(); | 95 frame_view_->ResetWindowControls(); |
| 92 } | 96 } |
| 93 | 97 |
| 94 void NonClientView::UpdateWindowIcon() { | 98 void NonClientView::UpdateWindowIcon() { |
| 95 frame_view_->UpdateWindowIcon(); | 99 frame_view_->UpdateWindowIcon(); |
| 96 } | 100 } |
| 97 | 101 |
| 98 void NonClientView::LayoutFrameView() { | 102 void NonClientView::LayoutFrameView() { |
| 99 // First layout the NonClientFrameView, which determines the size of the | 103 // First layout the NonClientFrameView, which determines the size of the |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 std::string NonClientFrameView::GetClassName() const { | 267 std::string NonClientFrameView::GetClassName() const { |
| 264 return kViewClassName; | 268 return kViewClassName; |
| 265 } | 269 } |
| 266 | 270 |
| 267 void NonClientFrameView::OnBoundsChanged(const gfx::Rect& previous_bounds) { | 271 void NonClientFrameView::OnBoundsChanged(const gfx::Rect& previous_bounds) { |
| 268 // Overridden to do nothing. The NonClientView manually calls Layout on the | 272 // Overridden to do nothing. The NonClientView manually calls Layout on the |
| 269 // FrameView when it is itself laid out, see comment in NonClientView::Layout. | 273 // FrameView when it is itself laid out, see comment in NonClientView::Layout. |
| 270 } | 274 } |
| 271 | 275 |
| 272 } // namespace views | 276 } // namespace views |
| OLD | NEW |