summaryrefslogtreecommitdiffstats
path: root/webkit/support/drt_application_mac.mm
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-19 00:51:13 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-19 00:51:13 +0000
commitd03c61ae71ffdcd865d02884f187506c40e186e7 (patch)
tree4cf312823eeb48730c1e01ba31efb91249507558 /webkit/support/drt_application_mac.mm
parentcd91a007e765486a6b84222bdec474f75bc1fa33 (diff)
downloadchromium_src-d03c61ae71ffdcd865d02884f187506c40e186e7.zip
chromium_src-d03c61ae71ffdcd865d02884f187506c40e186e7.tar.gz
chromium_src-d03c61ae71ffdcd865d02884f187506c40e186e7.tar.bz2
Try to get webkit tests green by letting DRT load CrApplication early.
This mirrors the change I made to test_shell in r69615 BUG=46929 TEST=webkit tests on waterfall are green TBR=tony^work Review URL: http://codereview.chromium.org/5987003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/drt_application_mac.mm')
-rw-r--r--webkit/support/drt_application_mac.mm18
1 files changed, 18 insertions, 0 deletions
diff --git a/webkit/support/drt_application_mac.mm b/webkit/support/drt_application_mac.mm
new file mode 100644
index 0000000..06ae4a7
--- /dev/null
+++ b/webkit/support/drt_application_mac.mm
@@ -0,0 +1,18 @@
+// Copyright (c) 2010 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.
+
+#include "webkit/support/drt_application_mac.h"
+
+@implementation CrDrtApplication
+- (BOOL)isHandlingSendEvent {
+ return handlingSendEvent_;
+}
+
+- (void)sendEvent:(NSEvent*)event {
+ BOOL wasHandlingSendEvent = handlingSendEvent_;
+ handlingSendEvent_ = YES;
+ [super sendEvent:event];
+ handlingSendEvent_ = wasHandlingSendEvent;
+}
+@end