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

Side by Side Diff: webkit/plugins/ppapi/ppb_widget_impl.cc

Issue 6368002: Fix widget pepper interface crashing after r71544. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_widget_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "webkit/plugins/ppapi/ppb_widget_impl.h" 5 #include "webkit/plugins/ppapi/ppb_widget_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ppapi/c/dev/ppb_widget_dev.h" 8 #include "ppapi/c/dev/ppb_widget_dev.h"
9 #include "ppapi/c/dev/ppp_widget_dev.h" 9 #include "ppapi/c/dev/ppp_widget_dev.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 location_ = *location; 93 location_ = *location;
94 SetLocationInternal(location); 94 SetLocationInternal(location);
95 } 95 }
96 96
97 void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) { 97 void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
98 const PPP_Widget_Dev* widget = static_cast<const PPP_Widget_Dev*>( 98 const PPP_Widget_Dev* widget = static_cast<const PPP_Widget_Dev*>(
99 instance()->module()->GetPluginInterface(PPP_WIDGET_DEV_INTERFACE)); 99 instance()->module()->GetPluginInterface(PPP_WIDGET_DEV_INTERFACE));
100 if (!widget) 100 if (!widget)
101 return; 101 return;
102 ScopedResourceId resource(this); 102 ScopedResourceId resource(this);
103 widget->Invalidate(instance_->pp_instance(), resource.id, dirty); 103 widget->Invalidate(instance()->pp_instance(), resource.id, dirty);
104 } 104 }
105 105
106 } // namespace ppapi 106 } // namespace ppapi
107 } // namespace webkit 107 } // namespace webkit
108 108
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_widget_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698