| 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_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
| 6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/c/dev/pp_print_settings_dev.h" | |
| 11 #include "ppapi/c/dev/ppb_console_dev.h" | 10 #include "ppapi/c/dev/ppb_console_dev.h" |
| 12 #include "ppapi/c/dev/ppb_text_input_dev.h" | 11 #include "ppapi/c/dev/ppb_text_input_dev.h" |
| 13 #include "ppapi/c/dev/ppb_url_util_dev.h" | 12 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| 14 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 15 #include "ppapi/c/pp_completion_callback.h" | 14 #include "ppapi/c/pp_completion_callback.h" |
| 16 #include "ppapi/c/pp_size.h" | 15 #include "ppapi/c/pp_size.h" |
| 17 #include "ppapi/c/pp_time.h" | 16 #include "ppapi/c/pp_time.h" |
| 18 #include "ppapi/c/ppb_audio_config.h" | 17 #include "ppapi/c/ppb_audio_config.h" |
| 19 #include "ppapi/c/ppb_gamepad.h" | 18 #include "ppapi/c/ppb_gamepad.h" |
| 20 #include "ppapi/c/ppb_instance.h" | 19 #include "ppapi/c/ppb_instance.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 virtual PP_Bool SetCursor(PP_Instance instance, | 109 virtual PP_Bool SetCursor(PP_Instance instance, |
| 111 PP_MouseCursor_Type type, | 110 PP_MouseCursor_Type type, |
| 112 PP_Resource image, | 111 PP_Resource image, |
| 113 const PP_Point* hot_spot) = 0; | 112 const PP_Point* hot_spot) = 0; |
| 114 | 113 |
| 115 // MouseLock. | 114 // MouseLock. |
| 116 virtual int32_t LockMouse(PP_Instance instance, | 115 virtual int32_t LockMouse(PP_Instance instance, |
| 117 scoped_refptr<TrackedCallback> callback) = 0; | 116 scoped_refptr<TrackedCallback> callback) = 0; |
| 118 virtual void UnlockMouse(PP_Instance instance) = 0; | 117 virtual void UnlockMouse(PP_Instance instance) = 0; |
| 119 | 118 |
| 120 // Printing. | |
| 121 virtual PP_Bool GetDefaultPrintSettings( | |
| 122 PP_Instance instance, | |
| 123 PP_PrintSettings_Dev* print_settings) = 0; | |
| 124 | |
| 125 // TextInput. | 119 // TextInput. |
| 126 virtual void SetTextInputType(PP_Instance instance, | 120 virtual void SetTextInputType(PP_Instance instance, |
| 127 PP_TextInput_Type type) = 0; | 121 PP_TextInput_Type type) = 0; |
| 128 virtual void UpdateCaretPosition(PP_Instance instance, | 122 virtual void UpdateCaretPosition(PP_Instance instance, |
| 129 const PP_Rect& caret, | 123 const PP_Rect& caret, |
| 130 const PP_Rect& bounding_box) = 0; | 124 const PP_Rect& bounding_box) = 0; |
| 131 virtual void CancelCompositionText(PP_Instance instance) = 0; | 125 virtual void CancelCompositionText(PP_Instance instance) = 0; |
| 132 virtual void SelectionChanged(PP_Instance instance) = 0; | 126 virtual void SelectionChanged(PP_Instance instance) = 0; |
| 133 virtual void UpdateSurroundingText(PP_Instance instance, | 127 virtual void UpdateSurroundingText(PP_Instance instance, |
| 134 const char* text, | 128 const char* text, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 PP_URLComponents_Dev* components) = 0; | 177 PP_URLComponents_Dev* components) = 0; |
| 184 #endif // !defined(OS_NACL) | 178 #endif // !defined(OS_NACL) |
| 185 | 179 |
| 186 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 180 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 187 }; | 181 }; |
| 188 | 182 |
| 189 } // namespace thunk | 183 } // namespace thunk |
| 190 } // namespace ppapi | 184 } // namespace ppapi |
| 191 | 185 |
| 192 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 186 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |