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

Side by Side Diff: ui/aura/window_tree_host_mac.mm

Issue 188853003: Revert of Clean up WindowEventDispatcher some more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/window_tree_host_delegate.h ('k') | ui/aura/window_tree_host_ozone.cc » ('j') | 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 <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"
9 10
10 namespace aura { 11 namespace aura {
11 12
12 WindowTreeHostMac::WindowTreeHostMac(const gfx::Rect& bounds) { 13 WindowTreeHostMac::WindowTreeHostMac(const gfx::Rect& bounds) {
13 window_.reset( 14 window_.reset(
14 [[NSWindow alloc] 15 [[NSWindow alloc]
15 initWithContentRect:NSRectFromCGRect(bounds.ToCGRect()) 16 initWithContentRect:NSRectFromCGRect(bounds.ToCGRect())
16 styleMask:NSBorderlessWindowMask 17 styleMask:NSBorderlessWindowMask
17 backing:NSBackingStoreBuffered 18 backing:NSBackingStoreBuffered
18 defer:NO]); 19 defer:NO]);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return new WindowTreeHostMac(bounds); 110 return new WindowTreeHostMac(bounds);
110 } 111 }
111 112
112 // static 113 // static
113 gfx::Size WindowTreeHost::GetNativeScreenSize() { 114 gfx::Size WindowTreeHost::GetNativeScreenSize() {
114 NOTIMPLEMENTED(); 115 NOTIMPLEMENTED();
115 return gfx::Size(1024, 768); 116 return gfx::Size(1024, 768);
116 } 117 }
117 118
118 } // namespace aura 119 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_delegate.h ('k') | ui/aura/window_tree_host_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698