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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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
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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 3709 matching lines...) Expand 10 before | Expand all | Expand 10 after
3720 void WebContentsImpl::OnGetNearestFindResultReply(RenderFrameHostImpl* source, 3720 void WebContentsImpl::OnGetNearestFindResultReply(RenderFrameHostImpl* source,
3721 int request_id, 3721 int request_id,
3722 float distance) { 3722 float distance) {
3723 GetOrCreateFindRequestManager()->OnGetNearestFindResultReply( 3723 GetOrCreateFindRequestManager()->OnGetNearestFindResultReply(
3724 source, request_id, distance); 3724 source, request_id, distance);
3725 } 3725 }
3726 3726
3727 void WebContentsImpl::OnOpenDateTimeDialog( 3727 void WebContentsImpl::OnOpenDateTimeDialog(
3728 RenderViewHostImpl* source, 3728 RenderViewHostImpl* source,
3729 const ViewHostMsg_DateTimeDialogValue_Params& value) { 3729 const ViewHostMsg_DateTimeDialogValue_Params& value) {
3730 if (GetRenderWidgetHostView()->IsInVR()) {
3731 // TODO(billorr): Add VR datetime chooser support. See crbug.com/688122.
3732 NOTIMPLEMENTED();
3733 return;
3734 }
3735
3730 date_time_chooser_->ShowDialog( 3736 date_time_chooser_->ShowDialog(
3731 GetTopLevelNativeWindow(), source, value.dialog_type, value.dialog_value, 3737 GetTopLevelNativeWindow(), source, value.dialog_type, value.dialog_value,
3732 value.minimum, value.maximum, value.step, value.suggestions); 3738 value.minimum, value.maximum, value.step, value.suggestions);
3733 } 3739 }
3734 #endif 3740 #endif
3735 3741
3736 void WebContentsImpl::OnDomOperationResponse(RenderFrameHostImpl* source, 3742 void WebContentsImpl::OnDomOperationResponse(RenderFrameHostImpl* source,
3737 const std::string& json_string) { 3743 const std::string& json_string) {
3738 // TODO(nick, lukasza): The notification below should probably be updated to 3744 // TODO(nick, lukasza): The notification below should probably be updated to
3739 // include |source|. 3745 // include |source|.
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
5407 GetMainFrame()->AddMessageToConsole( 5413 GetMainFrame()->AddMessageToConsole(
5408 content::CONSOLE_MESSAGE_LEVEL_WARNING, 5414 content::CONSOLE_MESSAGE_LEVEL_WARNING,
5409 base::StringPrintf("This site does not have a valid SSL " 5415 base::StringPrintf("This site does not have a valid SSL "
5410 "certificate! Without SSL, your site's and " 5416 "certificate! Without SSL, your site's and "
5411 "visitors' data is vulnerable to theft and " 5417 "visitors' data is vulnerable to theft and "
5412 "tampering. Get a valid SSL certificate before" 5418 "tampering. Get a valid SSL certificate before"
5413 " releasing your website to the public.")); 5419 " releasing your website to the public."));
5414 } 5420 }
5415 5421
5416 } // namespace content 5422 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698