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

Unified Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 2683823002: Disable DateTime, Color, and Select popups when in VR (Closed)
Patch Set: reformat todo's Created 3 years, 10 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 | « no previous file | content/browser/renderer_host/render_widget_host_view_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_contents_delegate_android/web_contents_delegate_android.cc
diff --git a/components/web_contents_delegate_android/web_contents_delegate_android.cc b/components/web_contents_delegate_android/web_contents_delegate_android.cc
index 386ca7579147339aad8715a19a6c2c0b7bcbb620..27db4505959f2fd93f7a268e8f6427a22ca97661 100644
--- a/components/web_contents_delegate_android/web_contents_delegate_android.cc
+++ b/components/web_contents_delegate_android/web_contents_delegate_android.cc
@@ -58,6 +58,11 @@ ColorChooser* WebContentsDelegateAndroid::OpenColorChooser(
WebContents* source,
SkColor color,
const std::vector<content::ColorSuggestion>& suggestions) {
+ if (source->GetRenderWidgetHostView()->IsInVR()) {
boliu 2017/03/06 22:38:10 instead of this check, make sure content doesn't c
+ // TODO(billorr): Add VR color chooser support. See crbug.com/661243.
+ NOTIMPLEMENTED();
mthiesse 2017/02/08 18:27:57 I don't think we actually want NOTIMPLEMENTED() he
mthiesse 2017/02/08 18:29:12 Nevermind the crashes point, I see that it either
billorr 2017/02/08 19:02:46 I was on the fence about adding it. I figured the
mthiesse 2017/02/08 19:24:46 It's somewhat harmful, strings are a large contrib
amp 2017/02/08 19:31:40 Policy on Android official builds seems to be to s
+ return nullptr;
+ }
return new ColorChooserAndroid(source, color, suggestions);
}
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698