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

Unified Diff: chrome/common/chrome_application_mac.h

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/chrome_common.gypi ('k') | chrome/common/chrome_application_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.h
diff --git a/base/chrome_application_mac.h b/chrome/common/chrome_application_mac.h
similarity index 84%
rename from base/chrome_application_mac.h
rename to chrome/common/chrome_application_mac.h
index 676959ec5bed87948fbae2bdf5e6060776c9c54f..585601d8153f2f019736629787a7bdb20b28cc12 100644
--- a/base/chrome_application_mac.h
+++ b/chrome/common/chrome_application_mac.h
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_CHROME_APPLICATION_MAC_H_
-#define BASE_CHROME_APPLICATION_MAC_H_
+#ifndef CHROME_COMMON_CHROME_APPLICATION_MAC_H_
+#define CHROME_COMMON_CHROME_APPLICATION_MAC_H_
#pragma once
#import <AppKit/AppKit.h>
#include "base/basictypes.h"
+#include "base/message_pump_mac.h"
#include "base/scoped_nsobject.h"
// Event hooks must implement this protocol.
@@ -17,15 +18,13 @@
@end
-@interface CrApplication : NSApplication {
+@interface CrApplication : NSApplication<CrAppProtocol> {
@private
BOOL handlingSendEvent_;
// Array of objects implementing the CrApplicationEventHookProtocol
scoped_nsobject<NSMutableArray> eventHooks_;
}
-@property(readonly,
- getter=isHandlingSendEvent,
- nonatomic) BOOL handlingSendEvent;
+- (BOOL)isHandlingSendEvent;
// Add or remove an event hook to be called for every sendEvent:
// that the application receives. These handlers are called before
@@ -58,4 +57,4 @@ class ScopedSendingEvent {
} // chrome_application_mac
-#endif // BASE_CHROME_APPLICATION_MAC_H_
+#endif // CHROME_COMMON_CHROME_APPLICATION_MAC_H_
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/chrome_application_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698