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

Unified Diff: content/renderer/pepper/ppb_widget_impl.cc

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/ppb_widget_impl.h ('k') | content/renderer/pepper/renderer_ppapi_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_widget_impl.cc
diff --git a/content/renderer/pepper/ppb_widget_impl.cc b/content/renderer/pepper/ppb_widget_impl.cc
index 494eec707e759d06b82d9ec753aefa3bcb7efb59..c28d566d7330a0e59a86614191801197bb25ffe0 100644
--- a/content/renderer/pepper/ppb_widget_impl.cc
+++ b/content/renderer/pepper/ppb_widget_impl.cc
@@ -21,25 +21,22 @@ using ppapi::thunk::PPB_Widget_API;
namespace content {
PPB_Widget_Impl::PPB_Widget_Impl(PP_Instance instance)
- : Resource(ppapi::OBJECT_IS_IMPL, instance),
- scale_(1.0f) {
+ : Resource(ppapi::OBJECT_IS_IMPL, instance), scale_(1.0f) {
memset(&location_, 0, sizeof(location_));
}
-PPB_Widget_Impl::~PPB_Widget_Impl() {
-}
+PPB_Widget_Impl::~PPB_Widget_Impl() {}
-PPB_Widget_API* PPB_Widget_Impl::AsPPB_Widget_API() {
- return this;
-}
+PPB_Widget_API* PPB_Widget_Impl::AsPPB_Widget_API() { return this; }
PP_Bool PPB_Widget_Impl::Paint(const PP_Rect* rect, PP_Resource image_id) {
EnterResourceNoLock<PPB_ImageData_API> enter(image_id, true);
if (enter.failed())
return PP_FALSE;
- return PaintInternal(gfx::Rect(rect->point.x, rect->point.y,
- rect->size.width, rect->size.height),
- static_cast<PPB_ImageData_Impl*>(enter.object()));
+ return PaintInternal(
+ gfx::Rect(
+ rect->point.x, rect->point.y, rect->size.width, rect->size.height),
+ static_cast<PPB_ImageData_Impl*>(enter.object()));
}
PP_Bool PPB_Widget_Impl::HandleEvent(PP_Resource pp_input_event) {
@@ -59,9 +56,7 @@ void PPB_Widget_Impl::SetLocation(const PP_Rect* location) {
SetLocationInternal(location);
}
-void PPB_Widget_Impl::SetScale(float scale) {
- scale_ = scale;
-}
+void PPB_Widget_Impl::SetScale(float scale) { scale_ = scale; }
void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
PepperPluginInstanceImpl* plugin_instance =
@@ -76,4 +71,3 @@ void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
}
} // namespace content
-
« no previous file with comments | « content/renderer/pepper/ppb_widget_impl.h ('k') | content/renderer/pepper/renderer_ppapi_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698