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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2439543003: Do not use overlays when VR shell is enabled. (Closed)
Patch Set: Created 4 years, 2 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/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 return; 666 return;
667 } 667 }
668 668
669 std::unique_ptr<ResizeParams> params(new ResizeParams); 669 std::unique_ptr<ResizeParams> params(new ResizeParams);
670 if (!GetResizeParams(params.get())) 670 if (!GetResizeParams(params.get()))
671 return; 671 return;
672 672
673 bool width_changed = 673 bool width_changed =
674 !old_resize_params_ || 674 !old_resize_params_ ||
675 old_resize_params_->new_size.width() != params->new_size.width(); 675 old_resize_params_->new_size.width() != params->new_size.width();
676
677 LOG(ERROR) << "===amp=== sending resize message, in vr = " << params->screen_i nfo.in_vr;
676 if (Send(new ViewMsg_Resize(routing_id_, *params))) { 678 if (Send(new ViewMsg_Resize(routing_id_, *params))) {
677 resize_ack_pending_ = params->needs_resize_ack; 679 resize_ack_pending_ = params->needs_resize_ack;
678 old_resize_params_.swap(params); 680 old_resize_params_.swap(params);
679 } 681 }
680 682
681 if (delegate_) 683 if (delegate_)
682 delegate_->RenderWidgetWasResized(this, width_changed); 684 delegate_->RenderWidgetWasResized(this, width_changed);
683 } 685 }
684 686
685 void RenderWidgetHostImpl::GotFocus() { 687 void RenderWidgetHostImpl::GotFocus() {
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; 2218 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
2217 } 2219 }
2218 2220
2219 BrowserAccessibilityManager* 2221 BrowserAccessibilityManager*
2220 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { 2222 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() {
2221 return delegate_ ? 2223 return delegate_ ?
2222 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; 2224 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL;
2223 } 2225 }
2224 2226
2225 } // namespace content 2227 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698