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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an Error in Code Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return parent_view->GetVisibleViewportSize(); 192 return parent_view->GetVisibleViewportSize();
193 } 193 }
194 return GetViewBounds().size(); 194 return GetViewBounds().size();
195 } 195 }
196 196
197 gfx::Vector2dF RenderWidgetHostViewChildFrame::GetLastScrollOffset() const { 197 gfx::Vector2dF RenderWidgetHostViewChildFrame::GetLastScrollOffset() const {
198 return last_scroll_offset_; 198 return last_scroll_offset_;
199 } 199 }
200 200
201 gfx::NativeView RenderWidgetHostViewChildFrame::GetNativeView() const { 201 gfx::NativeView RenderWidgetHostViewChildFrame::GetNativeView() const {
202 NOTREACHED(); 202 // TODO(ekaramad): To accomodate MimeHandlerViewGuest while embedded inside
203 // OOPIF-webview, we need to return the native view to be used by
204 // RenderWidgetHostViewGuest. Remove this once https://crbug.com/642826 is
205 // fixed.
206 if (frame_connector_)
207 return frame_connector_->GetParentRenderWidgetHostView()->GetNativeView();
203 return nullptr; 208 return nullptr;
204 } 209 }
205 210
206 gfx::NativeViewAccessible 211 gfx::NativeViewAccessible
207 RenderWidgetHostViewChildFrame::GetNativeViewAccessible() { 212 RenderWidgetHostViewChildFrame::GetNativeViewAccessible() {
208 NOTREACHED(); 213 NOTREACHED();
209 return nullptr; 214 return nullptr;
210 } 215 }
211 216
212 void RenderWidgetHostViewChildFrame::SetBackgroundColor(SkColor color) { 217 void RenderWidgetHostViewChildFrame::SetBackgroundColor(SkColor color) {
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 714
710 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 715 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
711 return true; 716 return true;
712 } 717 }
713 718
714 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 719 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
715 return surface_id_; 720 return surface_id_;
716 }; 721 };
717 722
718 } // namespace content 723 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698