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

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

Issue 8869005: Revert EnableClose() removal and related crash fixes. I don't understand the crashes here, and th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
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
58 void NativeFrameView::ResetWindowControls() { 62 void NativeFrameView::ResetWindowControls() {
59 // Nothing to do. 63 // Nothing to do.
60 } 64 }
61 65
62 void NativeFrameView::UpdateWindowIcon() { 66 void NativeFrameView::UpdateWindowIcon() {
63 // Nothing to do. 67 // Nothing to do.
64 } 68 }
65 69
66 gfx::Size NativeFrameView::GetPreferredSize() { 70 gfx::Size NativeFrameView::GetPreferredSize() {
67 return frame_->client_view()->GetPreferredSize(); 71 return frame_->client_view()->GetPreferredSize();
68 } 72 }
69 73
70 } // namespace views 74 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698