| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |