Index: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm |
diff --git a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm |
index 975e625a103d6e8bd6b8f88f9ef93a11a7836681..da766eac4adf825b2b51000371a4031fa85c6e58 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm |
+++ b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm |
@@ -6,6 +6,7 @@ |
#include "base/mac/mac_util.h" |
#include "base/mac/scoped_nsautorelease_pool.h" |
+#include "base/mac/sdk_forward_declarations.h" |
#include "base/strings/utf_string_conversions.h" |
#include "content/browser/browser_thread_impl.h" |
#include "content/browser/renderer_host/render_widget_host_delegate.h" |
@@ -23,25 +24,6 @@ |
#include "ui/events/test/cocoa_test_event_utils.h" |
#import "ui/gfx/test/ui_cocoa_test_helper.h" |
-// Declare things that are part of the 10.7 SDK. |
-#if !defined(MAC_OS_X_VERSION_10_7) || \ |
- MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
-enum { |
- NSEventPhaseNone = 0, // event not associated with a phase. |
- NSEventPhaseBegan = 0x1 << 0, |
- NSEventPhaseStationary = 0x1 << 1, |
- NSEventPhaseChanged = 0x1 << 2, |
- NSEventPhaseEnded = 0x1 << 3, |
- NSEventPhaseCancelled = 0x1 << 4, |
-}; |
-typedef NSUInteger NSEventPhase; |
- |
-@interface NSEvent (LionAPI) |
-- (NSEventPhase)phase; |
-@end |
- |
-#endif // 10.7 |
- |
// Helper class with methods used to mock -[NSEvent phase], used by |
// |MockScrollWheelEventWithPhase()|. |
@interface MockPhaseMethods : NSObject { |