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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/web_contents_delegate_android/web_contents_delegate_android .h" 5 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
6 6
7 #include <android/keycodes.h> 7 #include <android/keycodes.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 // ---------------------------------------------------------------------------- 53 // ----------------------------------------------------------------------------
54 // WebContentsDelegate methods 54 // WebContentsDelegate methods
55 // ---------------------------------------------------------------------------- 55 // ----------------------------------------------------------------------------
56 56
57 ColorChooser* WebContentsDelegateAndroid::OpenColorChooser( 57 ColorChooser* WebContentsDelegateAndroid::OpenColorChooser(
58 WebContents* source, 58 WebContents* source,
59 SkColor color, 59 SkColor color,
60 const std::vector<content::ColorSuggestion>& suggestions) { 60 const std::vector<content::ColorSuggestion>& suggestions) {
61 if (source->GetRenderWidgetHostView()->IsInVR()) {
boliu 2017/03/06 22:38:10 instead of this check, make sure content doesn't c
62 // TODO(billorr): Add VR color chooser support. See crbug.com/661243.
63 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
64 return nullptr;
65 }
61 return new ColorChooserAndroid(source, color, suggestions); 66 return new ColorChooserAndroid(source, color, suggestions);
62 } 67 }
63 68
64 // OpenURLFromTab() will be called when we're performing a browser-intiated 69 // OpenURLFromTab() will be called when we're performing a browser-intiated
65 // navigation. The most common scenario for this is opening new tabs (see 70 // navigation. The most common scenario for this is opening new tabs (see
66 // RenderViewImpl::decidePolicyForNavigation for more details). 71 // RenderViewImpl::decidePolicyForNavigation for more details).
67 WebContents* WebContentsDelegateAndroid::OpenURLFromTab( 72 WebContents* WebContentsDelegateAndroid::OpenURLFromTab(
68 WebContents* source, 73 WebContents* source,
69 const content::OpenURLParams& params) { 74 const content::OpenURLParams& params) {
70 const GURL& url = params.url; 75 const GURL& url = params.url;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 validation_message_bubble_->SetPositionRelativeToAnchor( 418 validation_message_bubble_->SetPositionRelativeToAnchor(
414 rwhv->GetRenderWidgetHost(), anchor_in_root_view); 419 rwhv->GetRenderWidgetHost(), anchor_in_root_view);
415 } 420 }
416 } 421 }
417 422
418 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( 423 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools(
419 content::WebContents* web_contents) { 424 content::WebContents* web_contents) {
420 } 425 }
421 426
422 } // namespace web_contents_delegate_android 427 } // namespace web_contents_delegate_android
OLDNEW
« 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