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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2657703002: Swap to foreground tab when following links that open in a new tab/window in VR Shell. (Closed)
Patch Set: Address comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_input_manager.cc ('k') | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index 8b71dc0289b666053f80d3ee30d8fe4fab5567ca..f0e83ece0642f726d880eeea37eda65c58f4f2d6 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -24,6 +24,10 @@ class ListValue;
class Thread;
}
+namespace blink {
+class WebInputEvent;
+}
+
namespace content {
class WebContents;
}
@@ -65,7 +69,9 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
VrShellDelegate* delegate,
gvr_context* gvr_api,
bool reprojected_rendering);
-
+ void SwapContents(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ const base::android::JavaParamRef<jobject>& web_contents);
void LoadUIContent(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj);
void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
@@ -89,6 +95,7 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
// Called when our WebContents have been hidden. Usually a sign that something
// like another tab placed in front of it.
void ContentWasHidden();
+ void ContentWasShown();
// html/js UI hooks.
static base::WeakPtr<VrShell> GetWeakPtr(
@@ -136,9 +143,11 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
void ForceExitVr();
+ void ProcessUIGesture(std::unique_ptr<blink::WebInputEvent> event);
+ void ProcessContentGesture(std::unique_ptr<blink::WebInputEvent> event);
+
private:
~VrShell() override;
- void SetIsInVR(bool is_in_vr);
void PostToGlThreadWhenReady(const base::Closure& task);
// content::WebContentsObserver implementation. All called on UI thread.
« no previous file with comments | « chrome/browser/android/vr_shell/vr_input_manager.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