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 <Cocoa/Cocoa.h> | 5 #include <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "ui/aura/window_tree_host_mac.h" | 7 #include "ui/aura/window_tree_host_mac.h" |
8 #include "ui/aura/window_tree_host.h" | 8 #include "ui/aura/window_tree_host.h" |
9 #include "ui/aura/window_tree_host_delegate.h" | |
10 | 9 |
11 namespace aura { | 10 namespace aura { |
12 | 11 |
13 WindowTreeHostMac::WindowTreeHostMac(const gfx::Rect& bounds) { | 12 WindowTreeHostMac::WindowTreeHostMac(const gfx::Rect& bounds) { |
14 window_.reset( | 13 window_.reset( |
15 [[NSWindow alloc] | 14 [[NSWindow alloc] |
16 initWithContentRect:NSRectFromCGRect(bounds.ToCGRect()) | 15 initWithContentRect:NSRectFromCGRect(bounds.ToCGRect()) |
17 styleMask:NSBorderlessWindowMask | 16 styleMask:NSBorderlessWindowMask |
18 backing:NSBackingStoreBuffered | 17 backing:NSBackingStoreBuffered |
19 defer:NO]); | 18 defer:NO]); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 return new WindowTreeHostMac(bounds); | 109 return new WindowTreeHostMac(bounds); |
111 } | 110 } |
112 | 111 |
113 // static | 112 // static |
114 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 113 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
115 NOTIMPLEMENTED(); | 114 NOTIMPLEMENTED(); |
116 return gfx::Size(1024, 768); | 115 return gfx::Size(1024, 768); |
117 } | 116 } |
118 | 117 |
119 } // namespace aura | 118 } // namespace aura |
OLD | NEW |