| 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 #ifndef PPAPI_CPP_INSTANCE_H_ | 5 #ifndef PPAPI_CPP_INSTANCE_H_ |
| 6 #define PPAPI_CPP_INSTANCE_H_ | 6 #define PPAPI_CPP_INSTANCE_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @file | 9 * @file |
| 10 * Defines the API ... | 10 * Defines the API ... |
| 11 * | 11 * |
| 12 * @addtogroup CPP | 12 * @addtogroup CPP |
| 13 * @{ | 13 * @{ |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #include <map> | 16 #include <map> |
| 17 #include <string> | 17 #include <string> |
| 18 | 18 |
| 19 #include "ppapi/c/dev/ppp_printing_dev.h" | |
| 20 #include "ppapi/c/pp_instance.h" | 19 #include "ppapi/c/pp_instance.h" |
| 21 #include "ppapi/c/pp_resource.h" | 20 #include "ppapi/c/pp_resource.h" |
| 22 #include "ppapi/c/pp_stdint.h" | 21 #include "ppapi/c/pp_stdint.h" |
| 23 | 22 |
| 24 struct PP_InputEvent; | 23 struct PP_InputEvent; |
| 25 | 24 |
| 26 /** The C++ interface to the Pepper API. */ | 25 /** The C++ interface to the Pepper API. */ |
| 27 namespace pp { | 26 namespace pp { |
| 28 | 27 |
| 29 class Graphics2D; | 28 class Graphics2D; |
| 30 class Graphics3D_Dev; | 29 class Graphics3D_Dev; |
| 31 class ImageData; | 30 class ImageData; |
| 32 class Point; | 31 class Point; |
| 33 class Rect; | 32 class Rect; |
| 34 class Rect; | 33 class Rect; |
| 35 class Resource; | 34 class Resource; |
| 36 class Scrollbar_Dev; | 35 class URLLoader; |
| 37 class URLLoader_Dev; | |
| 38 class Var; | 36 class Var; |
| 39 class Widget_Dev; | 37 class Widget_Dev; |
| 40 | 38 |
| 41 class Instance { | 39 class Instance { |
| 42 public: | 40 public: |
| 43 explicit Instance(PP_Instance instance); | 41 explicit Instance(PP_Instance instance); |
| 44 virtual ~Instance(); | 42 virtual ~Instance(); |
| 45 | 43 |
| 46 PP_Instance pp_instance() const { return pp_instance_; } | 44 PP_Instance pp_instance() const { return pp_instance_; } |
| 47 | 45 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 62 /** See PPP_Instance.DidChangeView. */ | 60 /** See PPP_Instance.DidChangeView. */ |
| 63 virtual void DidChangeView(const Rect& position, const Rect& clip); | 61 virtual void DidChangeView(const Rect& position, const Rect& clip); |
| 64 | 62 |
| 65 /** See PPP_Instance.DidChangeFocus. */ | 63 /** See PPP_Instance.DidChangeFocus. */ |
| 66 virtual void DidChangeFocus(bool has_focus); | 64 virtual void DidChangeFocus(bool has_focus); |
| 67 | 65 |
| 68 /** See PPP_Instance.HandleInputEvent. */ | 66 /** See PPP_Instance.HandleInputEvent. */ |
| 69 virtual bool HandleInputEvent(const PP_InputEvent& event); | 67 virtual bool HandleInputEvent(const PP_InputEvent& event); |
| 70 | 68 |
| 71 /** See PPP_Instance.HandleDocumentLoad. */ | 69 /** See PPP_Instance.HandleDocumentLoad. */ |
| 72 virtual bool HandleDocumentLoad(const URLLoader_Dev& url_loader); | 70 virtual bool HandleDocumentLoad(const URLLoader& url_loader); |
| 73 | 71 |
| 74 /** See PPP_Instance.GetInstanceObject. */ | 72 /** See PPP_Instance.GetInstanceObject. */ |
| 75 virtual Var GetInstanceObject(); | 73 virtual Var GetInstanceObject(); |
| 76 | 74 |
| 77 /** See PPP_Instance.GetSelectedText. */ | 75 /** See PPP_Instance.GetSelectedText. */ |
| 78 virtual Var GetSelectedText(bool html); | 76 virtual Var GetSelectedText(bool html); |
| 79 // @} | 77 // @} |
| 80 | 78 |
| 81 // @{ | 79 // @{ |
| 82 /** @name PPB_Instance methods for querying the browser: */ | 80 /** @name PPB_Instance methods for querying the browser: */ |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 InterfaceNameToObjectMap interface_name_to_objects_; | 150 InterfaceNameToObjectMap interface_name_to_objects_; |
| 153 }; | 151 }; |
| 154 | 152 |
| 155 } // namespace pp | 153 } // namespace pp |
| 156 | 154 |
| 157 /** | 155 /** |
| 158 * @} | 156 * @} |
| 159 * End addtogroup CPP | 157 * End addtogroup CPP |
| 160 */ | 158 */ |
| 161 #endif // PPAPI_CPP_INSTANCE_H_ | 159 #endif // PPAPI_CPP_INSTANCE_H_ |
| OLD | NEW |