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

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

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "chrome/common/features.h"
12 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
13 14
14 class GURL; 15 class GURL;
15 class Profile; 16 class Profile;
16 17
17 namespace base { 18 namespace base {
18 class FilePath; 19 class FilePath;
19 } 20 }
20 21
21 namespace platform_util { 22 namespace platform_util {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // whether the view has the visible attribute set. 92 // whether the view has the visible attribute set.
92 bool IsVisible(gfx::NativeView view); 93 bool IsVisible(gfx::NativeView view);
93 94
94 #if defined(OS_MACOSX) 95 #if defined(OS_MACOSX)
95 // On 10.7+, back and forward swipe gestures can be triggered using a scroll 96 // 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 97 // gesture, if enabled in System Preferences. This function returns true if
97 // the feature is supported and enabled, and false otherwise. 98 // the feature is supported and enabled, and false otherwise.
98 bool IsSwipeTrackingFromScrollEventsEnabled(); 99 bool IsSwipeTrackingFromScrollEventsEnabled();
99 #endif 100 #endif
100 101
101 #if defined(OS_ANDROID) && !defined(USE_AURA) 102 #if BUILDFLAG(ANDROID_JAVA_UI)
102 bool RegisterPlatformUtil(JNIEnv* env); 103 bool RegisterPlatformUtil(JNIEnv* env);
103 #endif 104 #endif
104 } // namespace platform_util 105 } // namespace platform_util
105 106
106 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ 107 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698