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

Side by Side Diff: ui/views/widget/native_widget_mac.mm

Issue 1019023002: MacViews: Implement non-client frame view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wrench-menu
Patch Set: Use Yosemite colors Created 5 years, 9 months 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
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/widget/native_widget_mac.h" 5 #include "ui/views/widget/native_widget_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/foundation_util.h" 9 #include "base/mac/foundation_util.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 NonClientFrameView* NativeWidgetMac::CreateNonClientFrameView() { 123 NonClientFrameView* NativeWidgetMac::CreateNonClientFrameView() {
124 return new NativeFrameView(GetWidget()); 124 return new NativeFrameView(GetWidget());
125 } 125 }
126 126
127 bool NativeWidgetMac::ShouldUseNativeFrame() const { 127 bool NativeWidgetMac::ShouldUseNativeFrame() const {
128 return true; 128 return true;
129 } 129 }
130 130
131 bool NativeWidgetMac::ShouldWindowContentsBeTransparent() const { 131 bool NativeWidgetMac::ShouldWindowContentsBeTransparent() const {
132 // On Windows, this returns false when DWM is unavailable (e.g. XP, RDP or 132 // On Windows, this returns true when Aero is enabled which draws the titlebar
133 // classic mode). OSX always has a compositing window manager. 133 // with translucency.
134 return true; 134 return false;
135 } 135 }
136 136
137 void NativeWidgetMac::FrameTypeChanged() { 137 void NativeWidgetMac::FrameTypeChanged() {
138 NOTIMPLEMENTED(); 138 NOTIMPLEMENTED();
139 } 139 }
140 140
141 Widget* NativeWidgetMac::GetWidget() { 141 Widget* NativeWidgetMac::GetWidget() {
142 return delegate_->AsWidget(); 142 return delegate_->AsWidget();
143 } 143 }
144 144
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 618 }
619 619
620 // static 620 // static
621 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 621 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
622 NOTIMPLEMENTED(); 622 NOTIMPLEMENTED();
623 return gfx::FontList(); 623 return gfx::FontList();
624 } 624 }
625 625
626 } // namespace internal 626 } // namespace internal
627 } // namespace views 627 } // namespace views
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698