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

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

Issue 10905122: Initial NPAPI plugin support in Win Aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 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 | Annotate | Revision Log
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 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 // can be re-used, so the bitmap may be invalid after this call. 1483 // can be re-used, so the bitmap may be invalid after this call.
1484 Send(new ViewMsg_UpdateRect_ACK(routing_id_)); 1484 Send(new ViewMsg_UpdateRect_ACK(routing_id_));
1485 } 1485 }
1486 1486
1487 // Move the plugins if the view hasn't already been destroyed. Plugin moves 1487 // Move the plugins if the view hasn't already been destroyed. Plugin moves
1488 // will not be re-issued, so must move them now, regardless of whether we 1488 // will not be re-issued, so must move them now, regardless of whether we
1489 // paint or not. MovePluginWindows attempts to move the plugin windows and 1489 // paint or not. MovePluginWindows attempts to move the plugin windows and
1490 // in the process could dispatch other window messages which could cause the 1490 // in the process could dispatch other window messages which could cause the
1491 // view to be destroyed. 1491 // view to be destroyed.
1492 if (view_) 1492 if (view_)
1493 view_->MovePluginWindows(params.plugin_window_moves); 1493 view_->MovePluginWindows(params.scroll_offset, params.plugin_window_moves);
1494 1494
1495 NotificationService::current()->Notify( 1495 NotificationService::current()->Notify(
1496 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, 1496 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE,
1497 Source<RenderWidgetHost>(this), 1497 Source<RenderWidgetHost>(this),
1498 NotificationService::NoDetails()); 1498 NotificationService::NoDetails());
1499 1499
1500 // We don't need to update the view if the view is hidden. We must do this 1500 // We don't need to update the view if the view is hidden. We must do this
1501 // early return after the ACK is sent, however, or the renderer will not send 1501 // early return after the ACK is sent, however, or the renderer will not send
1502 // us more data. 1502 // us more data.
1503 if (is_hidden_) 1503 if (is_hidden_)
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 // indicate that no callback is in progress (i.e. without this line 2049 // indicate that no callback is in progress (i.e. without this line
2050 // DelayedAutoResized will not get called again). 2050 // DelayedAutoResized will not get called again).
2051 new_auto_size_.SetSize(0, 0); 2051 new_auto_size_.SetSize(0, 0);
2052 if (!should_auto_resize_) 2052 if (!should_auto_resize_)
2053 return; 2053 return;
2054 2054
2055 OnRenderAutoResized(new_size); 2055 OnRenderAutoResized(new_size);
2056 } 2056 }
2057 2057
2058 } // namespace content 2058 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/plugin_process_host.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698