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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 1781873002: content: Rename virtual method on RenderView to not (ab)use blink style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renderwidget-overrides Created 4 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 void BrowserPlugin::updateGeometry(const WebRect& plugin_rect_in_viewport, 410 void BrowserPlugin::updateGeometry(const WebRect& plugin_rect_in_viewport,
411 const WebRect& clip_rect, 411 const WebRect& clip_rect,
412 const WebRect& unobscured_rect, 412 const WebRect& unobscured_rect,
413 const WebVector<WebRect>& cut_outs_rects, 413 const WebVector<WebRect>& cut_outs_rects,
414 bool is_visible) { 414 bool is_visible) {
415 gfx::Rect old_view_rect = view_rect_; 415 gfx::Rect old_view_rect = view_rect_;
416 // Convert the plugin_rect_in_viewport to window coordinates, which is css. 416 // Convert the plugin_rect_in_viewport to window coordinates, which is css.
417 WebRect rect_in_css(plugin_rect_in_viewport); 417 WebRect rect_in_css(plugin_rect_in_viewport);
418 blink::WebView* webview = container()->element().document().frame()->view(); 418 blink::WebView* webview = container()->element().document().frame()->view();
419 RenderView::FromWebView(webview)->convertViewportToWindow(&rect_in_css); 419 RenderView::FromWebView(webview)->GetWidget()->convertViewportToWindow(
420 &rect_in_css);
420 view_rect_ = rect_in_css; 421 view_rect_ = rect_in_css;
421 422
422 if (!ready_) { 423 if (!ready_) {
423 if (delegate_) 424 if (delegate_)
424 delegate_->Ready(); 425 delegate_->Ready();
425 ready_ = true; 426 ready_ = true;
426 } 427 }
427 428
428 if (delegate_ && (view_rect_.size() != old_view_rect.size())) 429 if (delegate_ && (view_rect_.size() != old_view_rect.size()))
429 delegate_->DidResizeElement(view_rect_.size()); 430 delegate_->DidResizeElement(view_rect_.size());
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 621
621 bool BrowserPlugin::HandleMouseLockedInputEvent( 622 bool BrowserPlugin::HandleMouseLockedInputEvent(
622 const blink::WebMouseEvent& event) { 623 const blink::WebMouseEvent& event) {
623 BrowserPluginManager::Get()->Send( 624 BrowserPluginManager::Get()->Send(
624 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, 625 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_,
625 &event)); 626 &event));
626 return true; 627 return true;
627 } 628 }
628 629
629 } // namespace content 630 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698