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

Side by Side Diff: content/common/chrome_application_mac.h

Issue 8724004: [Mac] Move ScopedSendingEvent from content/common/mac to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CrAppControlProtocol support to CrDrtApplication Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ 5 #ifndef CONTENT_COMMON_CHROME_APPLICATION_MAC_H_
6 #define CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ 6 #define CONTENT_COMMON_CHROME_APPLICATION_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(__OBJC__) 9 #if defined(__OBJC__)
10 10
11 #import <AppKit/AppKit.h> 11 #import <AppKit/AppKit.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #import "content/common/mac/scoped_sending_event.h" 14 #import "base/mac/scoped_sending_event.h"
15 15
16 @interface CrApplication : NSApplication<CrAppControlProtocol> { 16 @interface CrApplication : NSApplication<CrAppControlProtocol> {
17 @private 17 @private
18 BOOL handlingSendEvent_; 18 BOOL handlingSendEvent_;
19 } 19 }
20 - (BOOL)isHandlingSendEvent; 20 - (BOOL)isHandlingSendEvent;
21 21
22 // Unconditionally clears |handlingSendEvent_|. This should not be 22 // Unconditionally clears |handlingSendEvent_|. This should not be
23 // used except in recovering from some sort of exceptional condition. 23 // used except in recovering from some sort of exceptional condition.
24 - (void)clearIsHandlingSendEvent; 24 - (void)clearIsHandlingSendEvent;
25 25
26 + (NSApplication*)sharedApplication; 26 + (NSApplication*)sharedApplication;
27 @end 27 @end
28 28
29 #endif // defined(__OBJC__) 29 #endif // defined(__OBJC__)
30 30
31 namespace chrome_application_mac { 31 namespace chrome_application_mac {
32 32
33 // To be used to instantiate CrApplication from C++ code. 33 // To be used to instantiate CrApplication from C++ code.
34 void RegisterCrApp(); 34 void RegisterCrApp();
35 35
36 } // namespace chrome_application_mac 36 } // namespace chrome_application_mac
37 37
38 #endif // CONTENT_COMMON_CHROME_APPLICATION_MAC_H_ 38 #endif // CONTENT_COMMON_CHROME_APPLICATION_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698