| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool IsWindowActive(gfx::NativeWindow window); | 38 bool IsWindowActive(gfx::NativeWindow window); |
| 39 | 39 |
| 40 // Activate the window, bringing it to the foreground top level. | 40 // Activate the window, bringing it to the foreground top level. |
| 41 void ActivateWindow(gfx::NativeWindow window); | 41 void ActivateWindow(gfx::NativeWindow window); |
| 42 | 42 |
| 43 // Returns true if the view is visible. The exact definition of this is | 43 // Returns true if the view is visible. The exact definition of this is |
| 44 // platform-specific, but it is generally not "visible to the user", rather | 44 // platform-specific, but it is generally not "visible to the user", rather |
| 45 // whether the view has the visible attribute set. | 45 // whether the view has the visible attribute set. |
| 46 bool IsVisible(gfx::NativeView view); | 46 bool IsVisible(gfx::NativeView view); |
| 47 | 47 |
| 48 #if defined(OS_MACOSX) |
| 49 // On 10.7+, back and forward swipe gestures can be triggered using a scroll |
| 50 // gesture, if enabled in System Preferences. This function returns true if |
| 51 // the feature is supported and enabled, and false otherwise. |
| 52 bool IsSwipeTrackingFromScrollEventsEnabled(); |
| 53 #endif |
| 54 |
| 48 } // platform_util | 55 } // platform_util |
| 49 | 56 |
| 50 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ | 57 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ |
| OLD | NEW |