OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_PLATFORM_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PLATFORM_UTIL_H_ |
6 #define CHROME_BROWSER_PLATFORM_UTIL_H_ | 6 #define CHROME_BROWSER_PLATFORM_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // whether the view has the visible attribute set. | 91 // whether the view has the visible attribute set. |
92 bool IsVisible(gfx::NativeView view); | 92 bool IsVisible(gfx::NativeView view); |
93 | 93 |
94 #if defined(OS_MACOSX) | 94 #if defined(OS_MACOSX) |
95 // On 10.7+, back and forward swipe gestures can be triggered using a scroll | 95 // On 10.7+, back and forward swipe gestures can be triggered using a scroll |
96 // gesture, if enabled in System Preferences. This function returns true if | 96 // gesture, if enabled in System Preferences. This function returns true if |
97 // the feature is supported and enabled, and false otherwise. | 97 // the feature is supported and enabled, and false otherwise. |
98 bool IsSwipeTrackingFromScrollEventsEnabled(); | 98 bool IsSwipeTrackingFromScrollEventsEnabled(); |
99 #endif | 99 #endif |
100 | 100 |
| 101 #if defined(OS_ANDROID) |
| 102 bool RegisterPlatformUtil(JNIEnv* env); |
| 103 #endif |
101 } // namespace platform_util | 104 } // namespace platform_util |
102 | 105 |
103 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ | 106 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ |
OLD | NEW |