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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.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 unified diff | Download patch
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 <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 TimeDelta delta = TimeTicks::Now() - paint_start; 1672 TimeDelta delta = TimeTicks::Now() - paint_start;
1673 UMA_HISTOGRAM_TIMES("MPArch.RWH_OnMsgUpdateRect", delta); 1673 UMA_HISTOGRAM_TIMES("MPArch.RWH_OnMsgUpdateRect", delta);
1674 } 1674 }
1675 1675
1676 void RenderWidgetHostImpl::DidUpdateBackingStore( 1676 void RenderWidgetHostImpl::DidUpdateBackingStore(
1677 const ViewHostMsg_UpdateRect_Params& params, 1677 const ViewHostMsg_UpdateRect_Params& params,
1678 const TimeTicks& paint_start) { 1678 const TimeTicks& paint_start) {
1679 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::DidUpdateBackingStore"); 1679 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::DidUpdateBackingStore");
1680 TimeTicks update_start = TimeTicks::Now(); 1680 TimeTicks update_start = TimeTicks::Now();
1681 1681
1682 // Move the plugins if the view hasn't already been destroyed. Plugin moves
1683 // will not be re-issued, so must move them now, regardless of whether we
1684 // paint or not. MovePluginWindows attempts to move the plugin windows and
1685 // in the process could dispatch other window messages which could cause the
1686 // view to be destroyed.
1687 if (view_)
1688 view_->MovePluginWindows(params.plugin_window_moves);
1689
1690 NotificationService::current()->Notify( 1682 NotificationService::current()->Notify(
1691 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, 1683 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE,
1692 Source<RenderWidgetHost>(this), 1684 Source<RenderWidgetHost>(this),
1693 NotificationService::NoDetails()); 1685 NotificationService::NoDetails());
1694 1686
1695 // We don't need to update the view if the view is hidden. We must do this 1687 // We don't need to update the view if the view is hidden. We must do this
1696 // early return after the ACK is sent, however, or the renderer will not send 1688 // early return after the ACK is sent, however, or the renderer will not send
1697 // us more data. 1689 // us more data.
1698 if (is_hidden_) 1690 if (is_hidden_)
1699 return; 1691 return;
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 } 2234 }
2243 2235
2244 #if defined(OS_WIN) 2236 #if defined(OS_WIN)
2245 gfx::NativeViewAccessible 2237 gfx::NativeViewAccessible
2246 RenderWidgetHostImpl::GetParentNativeViewAccessible() { 2238 RenderWidgetHostImpl::GetParentNativeViewAccessible() {
2247 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; 2239 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL;
2248 } 2240 }
2249 #endif 2241 #endif
2250 2242
2251 } // namespace content 2243 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.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