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

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

Issue 23483041: [Cleanup] Remove mac code from aura/ash/views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/root_window_mac.h ('k') | ui/aura/root_window_view_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ui/aura/root_window_mac.h"
6
7 #include "ui/aura/root_window_host_mac.h"
8
9 @implementation RootWindowMac
10
11 - (id)initWithContentRect:(NSRect)contentRect
12 styleMask:(NSUInteger)windowStyle
13 backing:(NSBackingStoreType)bufferingType
14 defer:(BOOL)deferCreation {
15 if ((self = [super initWithContentRect:contentRect
16 styleMask:windowStyle
17 backing:bufferingType
18 defer:deferCreation])) {
19 hostDelegate_ = NULL;
20 }
21 return self;
22 }
23
24 - (void)setHostDelegate:(aura::RootWindowHostMacDelegate*)hostDelegate {
25 hostDelegate_ = hostDelegate;
26 }
27
28 - (void)sendEvent:(NSEvent*)event {
29 // Allow both the Cocoa machinery and the Aura machinery to handle the event.
30 [super sendEvent:event];
31 if (hostDelegate_)
32 hostDelegate_->SendEvent(event);
33 }
34
35 @end
OLDNEW
« no previous file with comments | « ui/aura/root_window_mac.h ('k') | ui/aura/root_window_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698