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

Side by Side Diff: ppapi/cpp/dev/widget_dev.h

Issue 8527020: Cleanup: Remove unneeded forward declarations in ppapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ppapi/cpp/dev/url_util_dev.h ('k') | ppapi/cpp/file_system.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) 2011 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 PPAPI_CPP_DEV_WIDGET_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_WIDGET_DEV_H_
6 #define PPAPI_CPP_DEV_WIDGET_DEV_H_ 6 #define PPAPI_CPP_DEV_WIDGET_DEV_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class ImageData; 13 class ImageData;
14 class InputEvent; 14 class InputEvent;
15 class Instance;
16 class Rect; 15 class Rect;
17 16
18 // This is the base class for widget elements. As such, it can't be created 17 // This is the base class for widget elements. As such, it can't be created
19 // directly. 18 // directly.
20 class Widget_Dev : public Resource { 19 class Widget_Dev : public Resource {
21 public: 20 public:
22 // Creates an is_null() Widget object. 21 // Creates an is_null() Widget object.
23 Widget_Dev() {} 22 Widget_Dev() {}
24 23
25 explicit Widget_Dev(PP_Resource resource); 24 explicit Widget_Dev(PP_Resource resource);
26 Widget_Dev(const Widget_Dev& other); 25 Widget_Dev(const Widget_Dev& other);
27 26
28 // PPB_Widget methods: 27 // PPB_Widget methods:
29 bool Paint(const Rect& rect, ImageData* image); 28 bool Paint(const Rect& rect, ImageData* image);
30 bool HandleEvent(const InputEvent& event); 29 bool HandleEvent(const InputEvent& event);
31 bool GetLocation(Rect* location); 30 bool GetLocation(Rect* location);
32 void SetLocation(const Rect& location); 31 void SetLocation(const Rect& location);
33 }; 32 };
34 33
35 } // namespace pp 34 } // namespace pp
36 35
37 #endif // PPAPI_CPP_DEV_WIDGET_DEV_H_ 36 #endif // PPAPI_CPP_DEV_WIDGET_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/url_util_dev.h ('k') | ppapi/cpp/file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698