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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 212369)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -142,7 +142,7 @@
struct CutoutRectsParams {
RenderWidgetHostViewAura* widget;
std::vector<gfx::Rect> cutout_rects;
- std::map<HWND, webkit::npapi::WebPluginGeometry>* geometry;
+ std::map<HWND, WebPluginGeometry>* geometry;
};
// Used to update the region for the windowed plugin to draw in. We start with
@@ -163,8 +163,7 @@
// Now get the cached clip rect and cutouts for this plugin window that came
// from the renderer.
- std::map<HWND, webkit::npapi::WebPluginGeometry>::iterator i =
- params->geometry->begin();
+ std::map<HWND, WebPluginGeometry>::iterator i = params->geometry->begin();
while (i != params->geometry->end() &&
i->second.window != window &&
GetParent(i->second.window) != window) {
@@ -876,7 +875,7 @@
void RenderWidgetHostViewAura::MovePluginWindows(
const gfx::Vector2d& scroll_offset,
- const std::vector<webkit::npapi::WebPluginGeometry>& plugin_window_moves) {
+ const std::vector<WebPluginGeometry>& plugin_window_moves) {
#if defined(OS_WIN)
// We need to clip the rectangle to the tab's viewport, otherwise we will draw
// over the browser UI.
@@ -886,7 +885,7 @@
}
HWND parent = window_->GetRootWindow()->GetAcceleratedWidget();
gfx::Rect view_bounds = window_->GetBoundsInRootWindow();
- std::vector<webkit::npapi::WebPluginGeometry> moves = plugin_window_moves;
+ std::vector<WebPluginGeometry> moves = plugin_window_moves;
gfx::Rect view_port(scroll_offset.x(), scroll_offset.y(), view_bounds.width(),
view_bounds.height());

Powered by Google App Engine
This is Rietveld 408576698