| OLD | NEW |
| 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 #include "chrome/browser/android/vr_shell/vr_shell.h" | 5 #include "chrome/browser/android/vr_shell/vr_shell.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "chrome/browser/android/vr_shell/ui_elements.h" | 8 #include "chrome/browser/android/vr_shell/ui_elements.h" |
| 9 #include "chrome/browser/android/vr_shell/ui_scene.h" | 9 #include "chrome/browser/android/vr_shell/ui_scene.h" |
| 10 #include "chrome/browser/android/vr_shell/vr_compositor.h" | 10 #include "chrome/browser/android/vr_shell/vr_compositor.h" |
| 11 #include "chrome/browser/android/vr_shell/vr_controller.h" | 11 #include "chrome/browser/android/vr_shell/vr_controller.h" |
| 12 #include "chrome/browser/android/vr_shell/vr_gesture.h" | 12 #include "chrome/browser/android/vr_shell/vr_gesture.h" |
| 13 #include "chrome/browser/android/vr_shell/vr_gl_util.h" | 13 #include "chrome/browser/android/vr_shell/vr_gl_util.h" |
| 14 #include "chrome/browser/android/vr_shell/vr_input_manager.h" | 14 #include "chrome/browser/android/vr_shell/vr_input_manager.h" |
| 15 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" | 15 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" |
| 16 #include "chrome/browser/android/vr_shell/vr_shell_renderer.h" | 16 #include "chrome/browser/android/vr_shell/vr_shell_renderer.h" |
| 17 #include "content/public/browser/navigation_controller.h" | 17 #include "content/public/browser/navigation_controller.h" |
| 18 #include "content/public/browser/render_widget_host.h" | 18 #include "content/public/browser/render_widget_host.h" |
| 19 #include "content/public/browser/render_widget_host_view.h" | 19 #include "content/public/browser/render_widget_host_view.h" |
| 20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 21 #include "content/public/common/referrer.h" | 21 #include "content/public/common/referrer.h" |
| 22 #include "content/public/common/screen_info.h" | 22 #include "content/public/common/screen_info.h" |
| 23 #include "jni/VrShell_jni.h" | 23 #include "jni/VrShellImpl_jni.h" |
| 24 #include "third_party/WebKit/public/web/WebInputEvent.h" | 24 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 25 #include "ui/android/view_android.h" | 25 #include "ui/android/view_android.h" |
| 26 #include "ui/android/window_android.h" | 26 #include "ui/android/window_android.h" |
| 27 #include "ui/base/page_transition_types.h" | 27 #include "ui/base/page_transition_types.h" |
| 28 #include "ui/gl/gl_bindings.h" | 28 #include "ui/gl/gl_bindings.h" |
| 29 #include "ui/gl/init/gl_factory.h" | 29 #include "ui/gl/init/gl_factory.h" |
| 30 | 30 |
| 31 using base::android::JavaParamRef; | 31 using base::android::JavaParamRef; |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| (...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 const JavaParamRef<jobject>& ui_web_contents, | 867 const JavaParamRef<jobject>& ui_web_contents, |
| 868 jlong ui_window_android) { | 868 jlong ui_window_android) { |
| 869 return reinterpret_cast<intptr_t>(new VrShell( | 869 return reinterpret_cast<intptr_t>(new VrShell( |
| 870 env, obj, content::WebContents::FromJavaWebContents(content_web_contents), | 870 env, obj, content::WebContents::FromJavaWebContents(content_web_contents), |
| 871 reinterpret_cast<ui::WindowAndroid*>(content_window_android), | 871 reinterpret_cast<ui::WindowAndroid*>(content_window_android), |
| 872 content::WebContents::FromJavaWebContents(ui_web_contents), | 872 content::WebContents::FromJavaWebContents(ui_web_contents), |
| 873 reinterpret_cast<ui::WindowAndroid*>(ui_window_android))); | 873 reinterpret_cast<ui::WindowAndroid*>(ui_window_android))); |
| 874 } | 874 } |
| 875 | 875 |
| 876 } // namespace vr_shell | 876 } // namespace vr_shell |
| OLD | NEW |