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

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

Issue 2536223002: Omnibox improvements and fixes. (Closed)
Patch Set: Unhook the original security warning control path. Created 4 years 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 | « no previous file | chrome/browser/android/vr_shell/vr_web_contents_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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_interface.h" 9 #include "chrome/browser/android/vr_shell/ui_interface.h"
10 #include "chrome/browser/android/vr_shell/ui_scene.h" 10 #include "chrome/browser/android/vr_shell/ui_scene.h"
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 webvr_mode_ = enabled; 906 webvr_mode_ = enabled;
907 metrics_helper_->SetWebVREnabled(webvr_mode_); 907 metrics_helper_->SetWebVREnabled(webvr_mode_);
908 if (enabled) { 908 if (enabled) {
909 html_interface_->SetMode(UiInterface::Mode::WEB_VR); 909 html_interface_->SetMode(UiInterface::Mode::WEB_VR);
910 } else { 910 } else {
911 html_interface_->SetMode(UiInterface::Mode::STANDARD); 911 html_interface_->SetMode(UiInterface::Mode::STANDARD);
912 } 912 }
913 } 913 }
914 914
915 void VrShell::SetWebVRSecureOrigin(bool secure_origin) { 915 void VrShell::SetWebVRSecureOrigin(bool secure_origin) {
916 html_interface_->SetSecureOrigin(secure_origin); 916 // TODO(cjgrant): Remove this method, and all related plumbing back to the
mthiesse 2016/11/29 16:40:19 hurray!
bajones 2016/11/29 17:53:23 +1!
cjgrant 2016/11/30 20:33:56 Sorry that this decoupling isn't happening yet. T
917 // renderer, as security level is now determined differently.
917 } 918 }
918 919
919 void VrShell::SubmitWebVRFrame() { 920 void VrShell::SubmitWebVRFrame() {
920 } 921 }
921 922
922 void VrShell::UpdateWebVRTextureBounds(const gvr::Rectf& left_bounds, 923 void VrShell::UpdateWebVRTextureBounds(const gvr::Rectf& left_bounds,
923 const gvr::Rectf& right_bounds) { 924 const gvr::Rectf& right_bounds) {
924 webvr_left_viewport_->SetSourceUv(left_bounds); 925 webvr_left_viewport_->SetSourceUv(left_bounds);
925 webvr_right_viewport_->SetSourceUv(right_bounds); 926 webvr_right_viewport_->SetSourceUv(right_bounds);
926 } 927 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 const JavaParamRef<jobject>& ui_web_contents, 1048 const JavaParamRef<jobject>& ui_web_contents,
1048 jlong ui_window_android) { 1049 jlong ui_window_android) {
1049 return reinterpret_cast<intptr_t>(new VrShell( 1050 return reinterpret_cast<intptr_t>(new VrShell(
1050 env, obj, content::WebContents::FromJavaWebContents(content_web_contents), 1051 env, obj, content::WebContents::FromJavaWebContents(content_web_contents),
1051 reinterpret_cast<ui::WindowAndroid*>(content_window_android), 1052 reinterpret_cast<ui::WindowAndroid*>(content_window_android),
1052 content::WebContents::FromJavaWebContents(ui_web_contents), 1053 content::WebContents::FromJavaWebContents(ui_web_contents),
1053 reinterpret_cast<ui::WindowAndroid*>(ui_window_android))); 1054 reinterpret_cast<ui::WindowAndroid*>(ui_window_android)));
1054 } 1055 }
1055 1056
1056 } // namespace vr_shell 1057 } // namespace vr_shell
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698