OLD | NEW |
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 } | 534 } |
535 | 535 |
536 //////////////////////////////////////////////////////////////////////////////// | 536 //////////////////////////////////////////////////////////////////////////////// |
537 // NativeWidgetMac, protected: | 537 // NativeWidgetMac, protected: |
538 | 538 |
539 NSWindow* NativeWidgetMac::CreateNSWindow(const Widget::InitParams& params) { | 539 NSWindow* NativeWidgetMac::CreateNSWindow(const Widget::InitParams& params) { |
540 return [[[NativeWidgetMacNSWindow alloc] | 540 return [[[NativeWidgetMacNSWindow alloc] |
541 initWithContentRect:ui::kWindowSizeDeterminedLater | 541 initWithContentRect:ui::kWindowSizeDeterminedLater |
542 styleMask:StyleMaskForParams(params) | 542 styleMask:StyleMaskForParams(params) |
543 backing:NSBackingStoreBuffered | 543 backing:NSBackingStoreBuffered |
544 defer:YES] autorelease]; | 544 defer:NO] autorelease]; |
545 } | 545 } |
546 | 546 |
547 //////////////////////////////////////////////////////////////////////////////// | 547 //////////////////////////////////////////////////////////////////////////////// |
548 // Widget, public: | 548 // Widget, public: |
549 | 549 |
550 bool Widget::ConvertRect(const Widget* source, | 550 bool Widget::ConvertRect(const Widget* source, |
551 const Widget* target, | 551 const Widget* target, |
552 gfx::Rect* rect) { | 552 gfx::Rect* rect) { |
553 return false; | 553 return false; |
554 } | 554 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 } | 640 } |
641 | 641 |
642 // static | 642 // static |
643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
644 NOTIMPLEMENTED(); | 644 NOTIMPLEMENTED(); |
645 return gfx::FontList(); | 645 return gfx::FontList(); |
646 } | 646 } |
647 | 647 |
648 } // namespace internal | 648 } // namespace internal |
649 } // namespace views | 649 } // namespace views |
OLD | NEW |