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

Unified Diff: content/renderer/render_widget.cc

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/shell/tools/plugin/main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 07ef1f471c2f39f0f518806c82330f6ce72ff608..e201f0a56ee69aa9a6ccb0af787ac6db8cc986c3 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -824,14 +824,12 @@ void RenderWidget::DidCompleteSwapBuffers() {
// Notify subclasses threaded composited rendering was flushed to the screen.
DidFlushPaint();
- if (!next_paint_flags_ && !need_update_rect_for_auto_resize_ &&
- !plugin_window_moves_.size()) {
+ if (!next_paint_flags_ && !need_update_rect_for_auto_resize_) {
return;
}
ViewHostMsg_UpdateRect_Params params;
params.view_size = size_;
- params.plugin_window_moves.swap(plugin_window_moves_);
params.flags = next_paint_flags_;
Send(new ViewHostMsg_UpdateRect(routing_id_, params));
@@ -2008,34 +2006,6 @@ void RenderWidget::StartCompositor() {
compositor_->setVisible(true);
}
-void RenderWidget::SchedulePluginMove(const WebPluginGeometry& move) {
- size_t i = 0;
- for (; i < plugin_window_moves_.size(); ++i) {
- if (plugin_window_moves_[i].window == move.window) {
- if (move.rects_valid) {
- plugin_window_moves_[i] = move;
- } else {
- plugin_window_moves_[i].visible = move.visible;
- }
- break;
- }
- }
-
- if (i == plugin_window_moves_.size())
- plugin_window_moves_.push_back(move);
-}
-
-void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) {
- for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin();
- i != plugin_window_moves_.end(); ++i) {
- if (i->window == window) {
- plugin_window_moves_.erase(i);
- break;
- }
- }
-}
-
-
RenderWidgetCompositor* RenderWidget::compositor() const {
return compositor_.get();
}
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/shell/tools/plugin/main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698