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

Side by Side Diff: content/renderer/pepper/ppb_widget_impl.h

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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CONTENT_RENDERER_PEPPER_PPB_WIDGET_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_WIDGET_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_WIDGET_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_WIDGET_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/c/pp_rect.h" 10 #include "ppapi/c/pp_rect.h"
(...skipping 13 matching lines...) Expand all
24 24
25 class PPB_Widget_Impl : public ppapi::Resource, 25 class PPB_Widget_Impl : public ppapi::Resource,
26 public ppapi::thunk::PPB_Widget_API { 26 public ppapi::thunk::PPB_Widget_API {
27 public: 27 public:
28 explicit PPB_Widget_Impl(PP_Instance instance); 28 explicit PPB_Widget_Impl(PP_Instance instance);
29 29
30 // Resource overrides. 30 // Resource overrides.
31 virtual ppapi::thunk::PPB_Widget_API* AsPPB_Widget_API() OVERRIDE; 31 virtual ppapi::thunk::PPB_Widget_API* AsPPB_Widget_API() OVERRIDE;
32 32
33 // PPB_WidgetAPI implementation. 33 // PPB_WidgetAPI implementation.
34 virtual PP_Bool Paint(const PP_Rect* rect, PP_Resource ) OVERRIDE; 34 virtual PP_Bool Paint(const PP_Rect* rect, PP_Resource) OVERRIDE;
35 virtual PP_Bool HandleEvent(PP_Resource pp_input_event) OVERRIDE; 35 virtual PP_Bool HandleEvent(PP_Resource pp_input_event) OVERRIDE;
36 virtual PP_Bool GetLocation(PP_Rect* location) OVERRIDE; 36 virtual PP_Bool GetLocation(PP_Rect* location) OVERRIDE;
37 virtual void SetLocation(const PP_Rect* location) OVERRIDE; 37 virtual void SetLocation(const PP_Rect* location) OVERRIDE;
38 virtual void SetScale(float scale) OVERRIDE; 38 virtual void SetScale(float scale) OVERRIDE;
39 39
40 // Notifies the plugin instance that the given rect needs to be repainted. 40 // Notifies the plugin instance that the given rect needs to be repainted.
41 void Invalidate(const PP_Rect* dirty); 41 void Invalidate(const PP_Rect* dirty);
42 42
43 protected: 43 protected:
44 virtual ~PPB_Widget_Impl(); 44 virtual ~PPB_Widget_Impl();
45 45
46 virtual PP_Bool PaintInternal(const gfx::Rect& rect, 46 virtual PP_Bool PaintInternal(const gfx::Rect& rect,
47 PPB_ImageData_Impl* image) = 0; 47 PPB_ImageData_Impl* image) = 0;
48 virtual PP_Bool HandleEventInternal(const ppapi::InputEventData& data) = 0; 48 virtual PP_Bool HandleEventInternal(const ppapi::InputEventData& data) = 0;
49 virtual void SetLocationInternal(const PP_Rect* location) = 0; 49 virtual void SetLocationInternal(const PP_Rect* location) = 0;
50 50
51 PP_Rect location() const { return location_; } 51 PP_Rect location() const { return location_; }
52 float scale() const { return scale_; } 52 float scale() const { return scale_; }
53 53
54 private: 54 private:
55 PP_Rect location_; 55 PP_Rect location_;
56 float scale_; 56 float scale_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl); 58 DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl);
59 }; 59 };
60 60
61 } // namespace content 61 } // namespace content
62 62
63 #endif // CONTENT_RENDERER_PEPPER_PPB_WIDGET_IMPL_H_ 63 #endif // CONTENT_RENDERER_PEPPER_PPB_WIDGET_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_video_decoder_impl.cc ('k') | content/renderer/pepper/ppb_widget_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698