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

Side by Side Diff: webkit/glue/plugins/pepper_widget.cc

Issue 4164015: Switch to the new PPAPI repository. This removes the DEPS entry that refers t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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/glue/plugins/pepper_widget.h ('k') | webkit/glue/plugins/ppb_private.h » ('j') | 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/glue/plugins/pepper_widget.h" 5 #include "webkit/glue/plugins/pepper_widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/ppapi/c/dev/ppb_widget_dev.h" 8 #include "ppapi/c/dev/ppb_widget_dev.h"
9 #include "third_party/ppapi/c/dev/ppp_widget_dev.h" 9 #include "ppapi/c/dev/ppp_widget_dev.h"
10 #include "third_party/ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
11 #include "third_party/ppapi/c/pp_errors.h" 11 #include "ppapi/c/pp_errors.h"
12 #include "webkit/glue/plugins/pepper_image_data.h" 12 #include "webkit/glue/plugins/pepper_image_data.h"
13 #include "webkit/glue/plugins/pepper_plugin_instance.h" 13 #include "webkit/glue/plugins/pepper_plugin_instance.h"
14 #include "webkit/glue/plugins/pepper_plugin_module.h" 14 #include "webkit/glue/plugins/pepper_plugin_module.h"
15 15
16 namespace pepper { 16 namespace pepper {
17 17
18 namespace { 18 namespace {
19 19
20 bool IsWidget(PP_Resource resource) { 20 bool IsWidget(PP_Resource resource) {
21 return !!Resource::GetAs<Widget>(resource); 21 return !!Resource::GetAs<Widget>(resource);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void Widget::Invalidate(const PP_Rect* dirty) { 85 void Widget::Invalidate(const PP_Rect* dirty) {
86 const PPP_Widget_Dev* widget = static_cast<const PPP_Widget_Dev*>( 86 const PPP_Widget_Dev* widget = static_cast<const PPP_Widget_Dev*>(
87 module()->GetPluginInterface(PPP_WIDGET_DEV_INTERFACE)); 87 module()->GetPluginInterface(PPP_WIDGET_DEV_INTERFACE));
88 if (!widget) 88 if (!widget)
89 return; 89 return;
90 ScopedResourceId resource(this); 90 ScopedResourceId resource(this);
91 widget->Invalidate(instance_->pp_instance(), resource.id, dirty); 91 widget->Invalidate(instance_->pp_instance(), resource.id, dirty);
92 } 92 }
93 93
94 } // namespace pepper 94 } // namespace pepper
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_widget.h ('k') | webkit/glue/plugins/ppb_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698