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

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

Issue 1146873002: [MacViews] Enable dragging a window by its caption/draggable areas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to single repost and [NSWindow setMovableByWindowBackground]. Created 5 years, 6 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
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 12 matching lines...) Expand all
23 namespace views { 23 namespace views {
24 namespace { 24 namespace {
25 25
26 NSInteger StyleMaskForParams(const Widget::InitParams& params) { 26 NSInteger StyleMaskForParams(const Widget::InitParams& params) {
27 // TODO(tapted): Determine better masks when there are use cases for it. 27 // TODO(tapted): Determine better masks when there are use cases for it.
28 if (params.remove_standard_frame) 28 if (params.remove_standard_frame)
29 return NSBorderlessWindowMask; 29 return NSBorderlessWindowMask;
30 30
31 if (params.type == Widget::InitParams::TYPE_WINDOW) { 31 if (params.type == Widget::InitParams::TYPE_WINDOW) {
32 return NSTitledWindowMask | NSClosableWindowMask | 32 return NSTitledWindowMask | NSClosableWindowMask |
33 NSMiniaturizableWindowMask | NSResizableWindowMask; 33 NSMiniaturizableWindowMask | NSResizableWindowMask |
34 NSTexturedBackgroundWindowMask;
34 } 35 }
35 return NSBorderlessWindowMask; 36 return NSBorderlessWindowMask;
36 } 37 }
37 38
38 } // namespace 39 } // namespace
39 40
40 //////////////////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////////////////
41 // NativeWidgetMac, public: 42 // NativeWidgetMac, public:
42 43
43 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate) 44 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate)
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 } 641 }
641 642
642 // static 643 // static
643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 644 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
644 NOTIMPLEMENTED(); 645 NOTIMPLEMENTED();
645 return gfx::FontList(); 646 return gfx::FontList();
646 } 647 }
647 648
648 } // namespace internal 649 } // namespace internal
649 } // namespace views 650 } // namespace views
OLDNEW
« ui/views/widget/native_widget_mac.h ('K') | « ui/views/widget/native_widget_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698