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

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

Issue 2647053002: Add initial VR interactive omnibox. (Closed)
Patch Set: 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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class VrWebContentsObserver; 42 class VrWebContentsObserver;
43 43
44 enum UiAction { 44 enum UiAction {
45 HISTORY_BACK = 0, 45 HISTORY_BACK = 0,
46 HISTORY_FORWARD, 46 HISTORY_FORWARD,
47 RELOAD, 47 RELOAD,
48 ZOOM_OUT, 48 ZOOM_OUT,
49 ZOOM_IN, 49 ZOOM_IN,
50 RELOAD_UI, 50 RELOAD_UI,
51 KEY_EVENT, 51 KEY_EVENT,
52 LOAD_URL,
53 OMNIBOX_CONTENT,
52 }; 54 };
53 55
54 class VrMetricsHelper; 56 class VrMetricsHelper;
55 57
56 // The native instance of the Java VrShell. This class is not threadsafe and 58 // The native instance of the Java VrShell. This class is not threadsafe and
57 // must only be used on the UI thread. 59 // must only be used on the UI thread.
58 class VrShell : public device::GvrDelegate, content::WebContentsObserver { 60 class VrShell : public device::GvrDelegate, content::WebContentsObserver {
59 public: 61 public:
60 VrShell(JNIEnv* env, jobject obj, 62 VrShell(JNIEnv* env, jobject obj,
61 content::WebContents* main_contents, 63 content::WebContents* main_contents,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 174 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
173 175
174 DISALLOW_COPY_AND_ASSIGN(VrShell); 176 DISALLOW_COPY_AND_ASSIGN(VrShell);
175 }; 177 };
176 178
177 bool RegisterVrShell(JNIEnv* env); 179 bool RegisterVrShell(JNIEnv* env);
178 180
179 } // namespace vr_shell 181 } // namespace vr_shell
180 182
181 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 183 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698