Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: chrome/browser/platform_util.h

Issue 10092017: Mac: Prevent NTP mousewheel events from being suppressed on Lion. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix grammar & style. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/platform_util_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/platform_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698