| OLD | NEW |
| 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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // rendering up to an offscreen SwapBuffers are visible. | 147 // rendering up to an offscreen SwapBuffers are visible. |
| 148 void CommitBackingTexture(); | 148 void CommitBackingTexture(); |
| 149 | 149 |
| 150 // Called when the out-of-process plugin implementing this instance crashed. | 150 // Called when the out-of-process plugin implementing this instance crashed. |
| 151 void InstanceCrashed(); | 151 void InstanceCrashed(); |
| 152 | 152 |
| 153 // PPB_Instance and PPB_Instance_Private implementation. | 153 // PPB_Instance and PPB_Instance_Private implementation. |
| 154 const GURL& plugin_url() const { return plugin_url_; } | 154 const GURL& plugin_url() const { return plugin_url_; } |
| 155 bool full_frame() const { return full_frame_; } | 155 bool full_frame() const { return full_frame_; } |
| 156 const ::ppapi::ViewData& view_data() const { return view_data_; } | 156 const ::ppapi::ViewData& view_data() const { return view_data_; } |
| 157 // If |type| is not PP_CURSORTYPE_CUSTOM, |custom_image| and |hot_spot| are | |
| 158 // ignored. | |
| 159 bool SetCursor(PP_CursorType_Dev type, | |
| 160 PP_Resource custom_image, | |
| 161 const PP_Point* hot_spot); | |
| 162 | 157 |
| 163 // PPP_Instance and PPP_Instance_Private pass-through. | 158 // PPP_Instance and PPP_Instance_Private pass-through. |
| 164 bool Initialize(WebKit::WebPluginContainer* container, | 159 bool Initialize(WebKit::WebPluginContainer* container, |
| 165 const std::vector<std::string>& arg_names, | 160 const std::vector<std::string>& arg_names, |
| 166 const std::vector<std::string>& arg_values, | 161 const std::vector<std::string>& arg_values, |
| 167 const GURL& plugin_url, | 162 const GURL& plugin_url, |
| 168 bool full_frame); | 163 bool full_frame); |
| 169 bool HandleDocumentLoad(PPB_URLLoader_Impl* loader); | 164 bool HandleDocumentLoad(PPB_URLLoader_Impl* loader); |
| 170 bool HandleInputEvent(const WebKit::WebInputEvent& event, | 165 bool HandleInputEvent(const WebKit::WebInputEvent& event, |
| 171 WebKit::WebCursorInfo* cursor_info); | 166 WebKit::WebCursorInfo* cursor_info); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 uint32_t event_classes) OVERRIDE; | 367 uint32_t event_classes) OVERRIDE; |
| 373 virtual void ClearInputEventRequest(PP_Instance instance, | 368 virtual void ClearInputEventRequest(PP_Instance instance, |
| 374 uint32_t event_classes) OVERRIDE; | 369 uint32_t event_classes) OVERRIDE; |
| 375 virtual void ClosePendingUserGesture(PP_Instance instance, | 370 virtual void ClosePendingUserGesture(PP_Instance instance, |
| 376 PP_TimeTicks timestamp); | 371 PP_TimeTicks timestamp); |
| 377 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; | 372 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; |
| 378 virtual void ZoomLimitsChanged(PP_Instance instance, | 373 virtual void ZoomLimitsChanged(PP_Instance instance, |
| 379 double minimum_factor, | 374 double minimum_factor, |
| 380 double maximium_factor) OVERRIDE; | 375 double maximium_factor) OVERRIDE; |
| 381 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; | 376 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; |
| 377 virtual PP_Bool SetCursor(PP_Instance instance, |
| 378 PP_MouseCursor_Type type, |
| 379 PP_Resource image, |
| 380 const PP_Point* hot_spot) OVERRIDE; |
| 382 virtual int32_t LockMouse(PP_Instance instance, | 381 virtual int32_t LockMouse(PP_Instance instance, |
| 383 PP_CompletionCallback callback) OVERRIDE; | 382 PP_CompletionCallback callback) OVERRIDE; |
| 384 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; | 383 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; |
| 385 virtual PP_Var ResolveRelativeToDocument( | 384 virtual PP_Var ResolveRelativeToDocument( |
| 386 PP_Instance instance, | 385 PP_Instance instance, |
| 387 PP_Var relative, | 386 PP_Var relative, |
| 388 PP_URLComponents_Dev* components) OVERRIDE; | 387 PP_URLComponents_Dev* components) OVERRIDE; |
| 389 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; | 388 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; |
| 390 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 389 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
| 391 PP_Instance target) OVERRIDE; | 390 PP_Instance target) OVERRIDE; |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 // a user gesture after it has been processed. | 646 // a user gesture after it has been processed. |
| 648 PP_TimeTicks pending_user_gesture_; | 647 PP_TimeTicks pending_user_gesture_; |
| 649 | 648 |
| 650 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 649 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 651 }; | 650 }; |
| 652 | 651 |
| 653 } // namespace ppapi | 652 } // namespace ppapi |
| 654 } // namespace webkit | 653 } // namespace webkit |
| 655 | 654 |
| 656 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 655 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |