diff options
Diffstat (limited to 'webkit/support')
-rw-r--r-- | webkit/support/drt_application_mac.h | 10 | ||||
-rw-r--r-- | webkit/support/drt_application_mac.mm | 7 |
2 files changed, 14 insertions, 3 deletions
diff --git a/webkit/support/drt_application_mac.h b/webkit/support/drt_application_mac.h index 64e91b9..cc03508 100644 --- a/webkit/support/drt_application_mac.h +++ b/webkit/support/drt_application_mac.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,12 +6,18 @@ #define WEBKIT_SUPPORT_DRT_APPLICATION_MAC_H #include "base/message_pump_mac.h" +#include "base/mac/scoped_sending_event.h" -@interface CrDrtApplication : NSApplication<CrAppProtocol> { +@interface CrDrtApplication : NSApplication<CrAppProtocol, + CrAppControlProtocol> { @private BOOL handlingSendEvent_; } +// CrAppProtocol - (BOOL)isHandlingSendEvent; + +// CrAppControlProtocol +- (void)setHandlingSendEvent:(BOOL)handlingSendEvent; @end #endif // WEBKIT_SUPPORT_DRT_APPLICATION_MAC_H diff --git a/webkit/support/drt_application_mac.mm b/webkit/support/drt_application_mac.mm index 06ae4a7..9fc61da 100644 --- a/webkit/support/drt_application_mac.mm +++ b/webkit/support/drt_application_mac.mm @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -15,4 +15,9 @@ [super sendEvent:event]; handlingSendEvent_ = wasHandlingSendEvent; } + +- (void)setHandlingSendEvent:(BOOL)handlingSendEvent { + handlingSendEvent_ = handlingSendEvent; +} + @end |