| OLD | NEW |
| 1 // Copyright (c) 2011 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 Widget_Dev() {} | 22 Widget_Dev() {} |
| 23 | 23 |
| 24 explicit Widget_Dev(PP_Resource resource); | 24 explicit Widget_Dev(PP_Resource resource); |
| 25 Widget_Dev(const Widget_Dev& other); | 25 Widget_Dev(const Widget_Dev& other); |
| 26 | 26 |
| 27 // PPB_Widget methods: | 27 // PPB_Widget methods: |
| 28 bool Paint(const Rect& rect, ImageData* image); | 28 bool Paint(const Rect& rect, ImageData* image); |
| 29 bool HandleEvent(const InputEvent& event); | 29 bool HandleEvent(const InputEvent& event); |
| 30 bool GetLocation(Rect* location); | 30 bool GetLocation(Rect* location); |
| 31 void SetLocation(const Rect& location); | 31 void SetLocation(const Rect& location); |
| 32 void SetScale(float scale); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace pp | 35 } // namespace pp |
| 35 | 36 |
| 36 #endif // PPAPI_CPP_DEV_WIDGET_DEV_H_ | 37 #endif // PPAPI_CPP_DEV_WIDGET_DEV_H_ |
| OLD | NEW |