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

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

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // whether the view has the visible attribute set. 99 // whether the view has the visible attribute set.
100 bool IsVisible(gfx::NativeView view); 100 bool IsVisible(gfx::NativeView view);
101 101
102 #if defined(OS_MACOSX) 102 #if defined(OS_MACOSX)
103 // On 10.7+, back and forward swipe gestures can be triggered using a scroll 103 // On 10.7+, back and forward swipe gestures can be triggered using a scroll
104 // gesture, if enabled in System Preferences. This function returns true if 104 // gesture, if enabled in System Preferences. This function returns true if
105 // the feature is supported and enabled, and false otherwise. 105 // the feature is supported and enabled, and false otherwise.
106 bool IsSwipeTrackingFromScrollEventsEnabled(); 106 bool IsSwipeTrackingFromScrollEventsEnabled();
107 #endif 107 #endif
108 108
109 #if BUILDFLAG(ANDROID_JAVA_UI)
110 bool RegisterPlatformUtil(JNIEnv* env);
111 #endif
112 } // namespace platform_util 109 } // namespace platform_util
113 110
114 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ 111 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698