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

Side by Side Diff: chrome/browser/android/feature_utilities.cc

Issue 1219133003: Contextual Search UI changes for custom tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use fadingInPercentage and fadingOutPercentage, get rid of PanelBase#isCloseIconVisible() Created 5 years, 5 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 | « chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/android/feature_utilities.h" 5 #include "chrome/browser/android/feature_utilities.h"
6 6
7 #include "jni/FeatureUtilities_jni.h" 7 #include "jni/FeatureUtilities_jni.h"
8 8
9 namespace { 9 namespace {
10 bool document_mode_enabled = false; 10 bool document_mode_enabled = false;
(...skipping 22 matching lines...) Expand all
33 jboolean enabled) { 33 jboolean enabled) {
34 document_mode_enabled = enabled; 34 document_mode_enabled = enabled;
35 } 35 }
36 36
37 static void SetCustomTabVisible(JNIEnv* env, 37 static void SetCustomTabVisible(JNIEnv* env,
38 jclass clazz, 38 jclass clazz,
39 jboolean visible) { 39 jboolean visible) {
40 custom_tab_visible = visible; 40 custom_tab_visible = visible;
41 } 41 }
42 42
43 static jboolean GetCustomTabVisible(JNIEnv* env,
44 jclass clazz) {
45 return custom_tab_visible;
46 }
47
43 bool RegisterFeatureUtilities(JNIEnv* env) { 48 bool RegisterFeatureUtilities(JNIEnv* env) {
44 return RegisterNativesImpl(env); 49 return RegisterNativesImpl(env);
45 } 50 }
OLDNEW
« no previous file with comments | « chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698