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_SHARED_IMPL_PPB_INSTANCE_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_ |
6 #define PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
10 #include "ppapi/shared_impl/ppapi_shared_export.h" | 10 #include "ppapi/shared_impl/ppapi_shared_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 PP_Var value) OVERRIDE; | 23 PP_Var value) OVERRIDE; |
24 virtual void LogWithSource(PP_Instance instance, | 24 virtual void LogWithSource(PP_Instance instance, |
25 PP_LogLevel_Dev log_level, | 25 PP_LogLevel_Dev log_level, |
26 PP_Var source, | 26 PP_Var source, |
27 PP_Var value) OVERRIDE; | 27 PP_Var value) OVERRIDE; |
28 | 28 |
29 // Error checks the given resquest to Request[Filtering]InputEvents. Returns | 29 // Error checks the given resquest to Request[Filtering]InputEvents. Returns |
30 // PP_OK if the given classes are all valid, PP_ERROR_NOTSUPPORTED if not. | 30 // PP_OK if the given classes are all valid, PP_ERROR_NOTSUPPORTED if not. |
31 int32_t ValidateRequestInputEvents(bool is_filtering, uint32_t event_classes); | 31 int32_t ValidateRequestInputEvents(bool is_filtering, uint32_t event_classes); |
32 | 32 |
| 33 void* GetCategoryEnabled(PP_Instance instance, |
| 34 const char* category_name) OVERRIDE; |
| 35 int32_t AddTraceEvent(PP_Instance instance, |
| 36 int8_t phase, |
| 37 const void* category_enabled, |
| 38 const char* name, |
| 39 uint64_t id, |
| 40 uint32_t num_args, |
| 41 const char* arg_names[], |
| 42 const uint8_t arg_types[], |
| 43 const uint64_t arg_values[], |
| 44 int32_t threshold_begin_id, |
| 45 int64_t threshold, |
| 46 uint8_t flags) OVERRIDE; |
| 47 void SetThreadName(PP_Instance instance, const char* thread_name) OVERRIDE; |
| 48 |
33 bool ValidateSetCursorParams(PP_MouseCursor_Type type, | 49 bool ValidateSetCursorParams(PP_MouseCursor_Type type, |
34 PP_Resource image, | 50 PP_Resource image, |
35 const PP_Point* hot_spot); | 51 const PP_Point* hot_spot); |
36 | 52 |
37 // The length of text to request as a surrounding context of selection. | 53 // The length of text to request as a surrounding context of selection. |
38 // For now, the value is copied from the one with render_view_impl.cc. | 54 // For now, the value is copied from the one with render_view_impl.cc. |
39 // TODO(kinaba) implement a way to dynamically sync the requirement. | 55 // TODO(kinaba) implement a way to dynamically sync the requirement. |
40 static const int kExtraCharsForTextInput; | 56 static const int kExtraCharsForTextInput; |
41 }; | 57 }; |
42 | 58 |
43 } // namespace ppapi | 59 } // namespace ppapi |
44 | 60 |
45 #endif // PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_ | 61 #endif // PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_ |
OLD | NEW |