Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: ui/views/window/native_frame_view.cc

Issue 8618001: Get rid of the EnableClose() infrastructure in Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/window/native_frame_view.h ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/views/window/native_frame_view.h ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698