| 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 PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
| 10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 double minimum_factor, | 80 double minimum_factor, |
| 81 double maximium_factor) OVERRIDE; | 81 double maximium_factor) OVERRIDE; |
| 82 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; | 82 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; |
| 83 virtual PP_Bool SetCursor(PP_Instance instance, | 83 virtual PP_Bool SetCursor(PP_Instance instance, |
| 84 PP_MouseCursor_Type type, | 84 PP_MouseCursor_Type type, |
| 85 PP_Resource image, | 85 PP_Resource image, |
| 86 const PP_Point* hot_spot) OVERRIDE; | 86 const PP_Point* hot_spot) OVERRIDE; |
| 87 virtual int32_t LockMouse(PP_Instance instance, | 87 virtual int32_t LockMouse(PP_Instance instance, |
| 88 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 88 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
| 89 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; | 89 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; |
| 90 virtual PP_Bool GetDefaultPrintSettings( | 90 virtual int32_t GetDefaultPrintSettings( |
| 91 PP_Instance instance, | 91 PP_Instance instance, |
| 92 PP_PrintSettings_Dev* print_settings) OVERRIDE; | 92 PP_PrintSettings_Dev* print_settings, |
| 93 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
| 93 virtual void SetTextInputType(PP_Instance instance, | 94 virtual void SetTextInputType(PP_Instance instance, |
| 94 PP_TextInput_Type type) OVERRIDE; | 95 PP_TextInput_Type type) OVERRIDE; |
| 95 virtual void UpdateCaretPosition(PP_Instance instance, | 96 virtual void UpdateCaretPosition(PP_Instance instance, |
| 96 const PP_Rect& caret, | 97 const PP_Rect& caret, |
| 97 const PP_Rect& bounding_box) OVERRIDE; | 98 const PP_Rect& bounding_box) OVERRIDE; |
| 98 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; | 99 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; |
| 99 virtual void SelectionChanged(PP_Instance instance) OVERRIDE; | 100 virtual void SelectionChanged(PP_Instance instance) OVERRIDE; |
| 100 virtual void UpdateSurroundingText(PP_Instance instance, | 101 virtual void UpdateSurroundingText(PP_Instance instance, |
| 101 const char* text, | 102 const char* text, |
| 102 uint32_t caret, | 103 uint32_t caret, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 bool is_filtering, | 150 bool is_filtering, |
| 150 uint32_t event_classes); | 151 uint32_t event_classes); |
| 151 void OnHostMsgClearInputEvents(PP_Instance instance, | 152 void OnHostMsgClearInputEvents(PP_Instance instance, |
| 152 uint32_t event_classes); | 153 uint32_t event_classes); |
| 153 void OnMsgHandleInputEventAck(PP_Instance instance, | 154 void OnMsgHandleInputEventAck(PP_Instance instance, |
| 154 PP_TimeTicks timestamp); | 155 PP_TimeTicks timestamp); |
| 155 void OnHostMsgPostMessage(PP_Instance instance, | 156 void OnHostMsgPostMessage(PP_Instance instance, |
| 156 SerializedVarReceiveInput message); | 157 SerializedVarReceiveInput message); |
| 157 void OnHostMsgLockMouse(PP_Instance instance); | 158 void OnHostMsgLockMouse(PP_Instance instance); |
| 158 void OnHostMsgUnlockMouse(PP_Instance instance); | 159 void OnHostMsgUnlockMouse(PP_Instance instance); |
| 159 void OnHostMsgGetDefaultPrintSettings(PP_Instance instance, | |
| 160 PP_PrintSettings_Dev* settings, | |
| 161 bool* result); | |
| 162 void OnHostMsgSetCursor(PP_Instance instance, | 160 void OnHostMsgSetCursor(PP_Instance instance, |
| 163 int32_t type, | 161 int32_t type, |
| 164 const ppapi::HostResource& custom_image, | 162 const ppapi::HostResource& custom_image, |
| 165 const PP_Point& hot_spot); | 163 const PP_Point& hot_spot); |
| 166 void OnHostMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type); | 164 void OnHostMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type); |
| 167 void OnHostMsgUpdateCaretPosition(PP_Instance instance, | 165 void OnHostMsgUpdateCaretPosition(PP_Instance instance, |
| 168 const PP_Rect& caret, | 166 const PP_Rect& caret, |
| 169 const PP_Rect& bounding_box); | 167 const PP_Rect& bounding_box); |
| 170 void OnHostMsgCancelCompositionText(PP_Instance instance); | 168 void OnHostMsgCancelCompositionText(PP_Instance instance); |
| 171 void OnHostMsgUpdateSurroundingText( | 169 void OnHostMsgUpdateSurroundingText( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 187 SerializedVarReturnValue result); | 185 SerializedVarReturnValue result); |
| 188 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, | 186 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, |
| 189 SerializedVarReturnValue result); | 187 SerializedVarReturnValue result); |
| 190 #endif // !defined(OS_NACL) | 188 #endif // !defined(OS_NACL) |
| 191 | 189 |
| 192 // Host -> Plugin message handlers. | 190 // Host -> Plugin message handlers. |
| 193 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 191 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
| 194 | 192 |
| 195 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 193 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
| 196 | 194 |
| 195 void OnPluginMsgGetDefaultPrintSettingsComplete( |
| 196 int32 routing_id, |
| 197 PP_Instance, |
| 198 const PP_PrintSettings_Dev& settings, |
| 199 int32_t result); |
| 200 |
| 197 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 201 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
| 198 }; | 202 }; |
| 199 | 203 |
| 200 } // namespace proxy | 204 } // namespace proxy |
| 201 } // namespace ppapi | 205 } // namespace ppapi |
| 202 | 206 |
| 203 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 207 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| OLD | NEW |