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

Unified Diff: chrome/common/chrome_application_mac.mm

Issue 5950003: Remove CrApplication dependency from base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_application_mac.h ('k') | chrome/common/sandbox_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_application_mac.mm
diff --git a/base/chrome_application_mac.mm b/chrome/common/chrome_application_mac.mm
similarity index 86%
rename from base/chrome_application_mac.mm
rename to chrome/common/chrome_application_mac.mm
index a163534ddecece30ff2a20b303a9ab46b6f21324..9bd9f678ae2a045eecb03785107d151daa1f97a8 100644
--- a/base/chrome_application_mac.mm
+++ b/chrome/common/chrome_application_mac.mm
@@ -2,19 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "chrome_application_mac.h"
+#import "chrome/common/chrome_application_mac.h"
#include "base/logging.h"
@interface CrApplication ()
-@property(readwrite,
- getter=isHandlingSendEvent,
- nonatomic) BOOL handlingSendEvent;
+- (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
@end
@implementation CrApplication
-@synthesize handlingSendEvent = handlingSendEvent_;
-
// Initialize NSApplication using the custom subclass. Check whether NSApp
// was already initialized using another class, because that would break
// some things.
@@ -35,6 +31,14 @@
return self;
}
+- (BOOL)isHandlingSendEvent {
+ return handlingSendEvent_;
+}
+
+- (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
+ handlingSendEvent_ = handlingSendEvent;
+}
+
- (void)sendEvent:(NSEvent*)event {
chrome_application_mac::ScopedSendingEvent sendingEventScoper;
for (id<CrApplicationEventHookProtocol> handler in eventHooks_.get()) {
« no previous file with comments | « chrome/common/chrome_application_mac.h ('k') | chrome/common/sandbox_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698