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

Side by Side Diff: content/shell/browser/shell_application_mac.mm

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | « content/shell/browser/shell_application_mac.h ('k') | content/shell/browser/shell_aura.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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 "content/shell/shell_application_mac.h" 5 #include "content/shell/browser/shell_application_mac.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "content/public/common/url_constants.h" 8 #include "content/public/common/url_constants.h"
9 #include "content/shell/shell.h" 9 #include "content/shell/browser/shell.h"
10 #include "content/shell/shell_browser_context.h" 10 #include "content/shell/browser/shell_browser_context.h"
11 #include "content/shell/shell_content_browser_client.h" 11 #include "content/shell/browser/shell_content_browser_client.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 @implementation ShellCrApplication 14 @implementation ShellCrApplication
15 15
16 - (BOOL)isHandlingSendEvent { 16 - (BOOL)isHandlingSendEvent {
17 return handlingSendEvent_; 17 return handlingSendEvent_;
18 } 18 }
19 19
20 - (void)sendEvent:(NSEvent*)event { 20 - (void)sendEvent:(NSEvent*)event {
21 base::AutoReset<BOOL> scoper(&handlingSendEvent_, YES); 21 base::AutoReset<BOOL> scoper(&handlingSendEvent_, YES);
22 [super sendEvent:event]; 22 [super sendEvent:event];
23 } 23 }
24 24
25 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent { 25 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
26 handlingSendEvent_ = handlingSendEvent; 26 handlingSendEvent_ = handlingSendEvent;
27 } 27 }
28 28
29 - (IBAction)newDocument:(id)sender { 29 - (IBAction)newDocument:(id)sender {
30 content::ShellBrowserContext* browserContext = 30 content::ShellBrowserContext* browserContext =
31 content::ShellContentBrowserClient::Get()->browser_context(); 31 content::ShellContentBrowserClient::Get()->browser_context();
32 content::Shell::CreateNewWindow(browserContext, 32 content::Shell::CreateNewWindow(browserContext,
33 GURL(content::kAboutBlankURL), 33 GURL(content::kAboutBlankURL),
34 NULL, 34 NULL,
35 MSG_ROUTING_NONE, 35 MSG_ROUTING_NONE,
36 gfx::Size()); 36 gfx::Size());
37 } 37 }
38 38
39 @end 39 @end
OLDNEW
« no previous file with comments | « content/shell/browser/shell_application_mac.h ('k') | content/shell/browser/shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698