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 "chrome/browser/ui/cocoa/native_window_tracker_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/native_window_tracker_cocoa.h" |
6 | 6 |
7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
8 | 8 |
9 @interface BridgedNativeWindowTracker : NSObject { | 9 @interface BridgedNativeWindowTracker : NSObject { |
10 @private | 10 @private |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 NativeWindowTrackerCocoa::~NativeWindowTrackerCocoa() { | 55 NativeWindowTrackerCocoa::~NativeWindowTrackerCocoa() { |
56 } | 56 } |
57 | 57 |
58 bool NativeWindowTrackerCocoa::WasNativeWindowClosed() const { | 58 bool NativeWindowTrackerCocoa::WasNativeWindowClosed() const { |
59 return [bridge_ wasNSWindowClosed]; | 59 return [bridge_ wasNSWindowClosed]; |
60 } | 60 } |
61 | 61 |
62 // static | 62 // static |
63 scoped_ptr<NativeWindowTracker> NativeWindowTracker::Create( | 63 std::unique_ptr<NativeWindowTracker> NativeWindowTracker::Create( |
64 gfx::NativeWindow window) { | 64 gfx::NativeWindow window) { |
65 return scoped_ptr<NativeWindowTracker>(new NativeWindowTrackerCocoa(window)); | 65 return std::unique_ptr<NativeWindowTracker>( |
| 66 new NativeWindowTrackerCocoa(window)); |
66 } | 67 } |
OLD | NEW |