Index: ui/views/test/event_generator_delegate_mac.mm |
diff --git a/ui/views/test/event_generator_delegate_mac.mm b/ui/views/test/event_generator_delegate_mac.mm |
index d0e351a012deb03d5396db1629acab01ebe52638..db94d341f82511a1a6c5039c281c00f89c00de3e 100644 |
--- a/ui/views/test/event_generator_delegate_mac.mm |
+++ b/ui/views/test/event_generator_delegate_mac.mm |
@@ -4,13 +4,13 @@ |
#import <Cocoa/Cocoa.h> |
+#import "base/mac/scoped_objc_class_swizzler.h" |
#include "base/memory/singleton.h" |
#include "ui/events/event_processor.h" |
#include "ui/events/event_target.h" |
#include "ui/events/event_target_iterator.h" |
#include "ui/events/event_targeter.h" |
#include "ui/events/test/event_generator.h" |
-#import "ui/events/test/cocoa_test_event_utils.h" |
#include "ui/gfx/mac/coordinate_conversion.h" |
namespace { |
@@ -293,7 +293,7 @@ class EventGeneratorDelegateMac : public ui::EventTarget, |
ui::test::EventGenerator* owner_; |
NSWindow* window_; |
- scoped_ptr<ScopedClassSwizzler> swizzle_pressed_; |
+ scoped_ptr<base::mac::ScopedObjCClassSwizzler> swizzle_pressed_; |
DISALLOW_COPY_AND_ASSIGN(EventGeneratorDelegateMac); |
}; |
@@ -332,7 +332,7 @@ void EventGeneratorDelegateMac::SetContext(ui::test::EventGenerator* owner, |
owner_ = owner; |
window_ = window; |
if (owner_) { |
- swizzle_pressed_.reset(new ScopedClassSwizzler( |
+ swizzle_pressed_.reset(new base::mac::ScopedObjCClassSwizzler( |
[NSEvent class], |
[NSEventDonor class], |
@selector(pressedMouseButtons))); |