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

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2735983004: Visually disable VR Shell back/forward buttons when no history is available (Closed)
Patch Set: Addressing closure compilation error Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_VR_SHELL_VR_SHELL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 jstring jtitle); 109 jstring jtitle);
110 void OnTabRemoved(JNIEnv* env, 110 void OnTabRemoved(JNIEnv* env,
111 const base::android::JavaParamRef<jobject>& obj, 111 const base::android::JavaParamRef<jobject>& obj,
112 jboolean incognito, 112 jboolean incognito,
113 jint id); 113 jint id);
114 base::android::ScopedJavaGlobalRef<jobject> TakeContentSurface( 114 base::android::ScopedJavaGlobalRef<jobject> TakeContentSurface(
115 JNIEnv* env, 115 JNIEnv* env,
116 const base::android::JavaParamRef<jobject>& obj); 116 const base::android::JavaParamRef<jobject>& obj);
117 void RestoreContentSurface(JNIEnv* env, 117 void RestoreContentSurface(JNIEnv* env,
118 const base::android::JavaParamRef<jobject>& obj); 118 const base::android::JavaParamRef<jobject>& obj);
119 void SetHistoryButtonsEnabled(JNIEnv* env,
120 const base::android::JavaParamRef<jobject>& obj,
121 jboolean can_go_back,
122 jboolean can_go_forward);
119 123
120 void ContentWebContentsDestroyed(); 124 void ContentWebContentsDestroyed();
121 // Called when our WebContents have been hidden. Usually a sign that something 125 // Called when our WebContents have been hidden. Usually a sign that something
122 // like another tab placed in front of it. 126 // like another tab placed in front of it.
123 void ContentWasHidden(); 127 void ContentWasHidden();
124 void ContentWasShown(); 128 void ContentWasShown();
125 129
126 // html/js UI hooks. 130 // html/js UI hooks.
127 static base::WeakPtr<VrShell> GetWeakPtr( 131 static base::WeakPtr<VrShell> GetWeakPtr(
128 const content::WebContents* web_contents); 132 const content::WebContents* web_contents);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 242 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
239 243
240 DISALLOW_COPY_AND_ASSIGN(VrShell); 244 DISALLOW_COPY_AND_ASSIGN(VrShell);
241 }; 245 };
242 246
243 bool RegisterVrShell(JNIEnv* env); 247 bool RegisterVrShell(JNIEnv* env);
244 248
245 } // namespace vr_shell 249 } // namespace vr_shell
246 250
247 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 251 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.cc ('k') | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698