Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.h

Issue 252663002: Track plugin input event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: change PP_instance to InstanceHandle in StartTrackingLatency Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual PP_Bool SetFullscreen(PP_Instance instance, 71 virtual PP_Bool SetFullscreen(PP_Instance instance,
72 PP_Bool fullscreen) OVERRIDE; 72 PP_Bool fullscreen) OVERRIDE;
73 virtual PP_Bool GetScreenSize(PP_Instance instance, 73 virtual PP_Bool GetScreenSize(PP_Instance instance,
74 PP_Size* size) OVERRIDE; 74 PP_Size* size) OVERRIDE;
75 virtual Resource* GetSingletonResource(PP_Instance instance, 75 virtual Resource* GetSingletonResource(PP_Instance instance,
76 SingletonResourceID id) OVERRIDE; 76 SingletonResourceID id) OVERRIDE;
77 virtual int32_t RequestInputEvents(PP_Instance instance, 77 virtual int32_t RequestInputEvents(PP_Instance instance,
78 uint32_t event_classes) OVERRIDE; 78 uint32_t event_classes) OVERRIDE;
79 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 79 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
80 uint32_t event_classes) OVERRIDE; 80 uint32_t event_classes) OVERRIDE;
81 virtual void StartTrackingLatency(PP_Instance instance) OVERRIDE;
81 virtual void ClearInputEventRequest(PP_Instance instance, 82 virtual void ClearInputEventRequest(PP_Instance instance,
82 uint32_t event_classes) OVERRIDE; 83 uint32_t event_classes) OVERRIDE;
83 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; 84 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE;
84 virtual void ZoomLimitsChanged(PP_Instance instance, 85 virtual void ZoomLimitsChanged(PP_Instance instance,
85 double minimum_factor, 86 double minimum_factor,
86 double maximium_factor) OVERRIDE; 87 double maximium_factor) OVERRIDE;
87 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; 88 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE;
88 virtual PP_Bool SetCursor(PP_Instance instance, 89 virtual PP_Bool SetCursor(PP_Instance instance,
89 PP_MouseCursor_Type type, 90 PP_MouseCursor_Type type,
90 PP_Resource image, 91 PP_Resource image,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const std::vector<PP_Rect>& tickmarks); 187 const std::vector<PP_Rect>& tickmarks);
187 void OnHostMsgSetFullscreen(PP_Instance instance, 188 void OnHostMsgSetFullscreen(PP_Instance instance,
188 PP_Bool fullscreen, 189 PP_Bool fullscreen,
189 PP_Bool* result); 190 PP_Bool* result);
190 void OnHostMsgGetScreenSize(PP_Instance instance, 191 void OnHostMsgGetScreenSize(PP_Instance instance,
191 PP_Bool* result, 192 PP_Bool* result,
192 PP_Size* size); 193 PP_Size* size);
193 void OnHostMsgRequestInputEvents(PP_Instance instance, 194 void OnHostMsgRequestInputEvents(PP_Instance instance,
194 bool is_filtering, 195 bool is_filtering,
195 uint32_t event_classes); 196 uint32_t event_classes);
197 void OnHostMsgStartTrackingLatency(PP_Instance instance);
196 void OnHostMsgClearInputEvents(PP_Instance instance, 198 void OnHostMsgClearInputEvents(PP_Instance instance,
197 uint32_t event_classes); 199 uint32_t event_classes);
198 void OnHostMsgPostMessage(PP_Instance instance, 200 void OnHostMsgPostMessage(PP_Instance instance,
199 SerializedVarReceiveInput message); 201 SerializedVarReceiveInput message);
200 void OnHostMsgLockMouse(PP_Instance instance); 202 void OnHostMsgLockMouse(PP_Instance instance);
201 void OnHostMsgUnlockMouse(PP_Instance instance); 203 void OnHostMsgUnlockMouse(PP_Instance instance);
202 void OnHostMsgSetCursor(PP_Instance instance, 204 void OnHostMsgSetCursor(PP_Instance instance,
203 int32_t type, 205 int32_t type,
204 const ppapi::HostResource& custom_image, 206 const ppapi::HostResource& custom_image,
205 const PP_Point& hot_spot); 207 const PP_Point& hot_spot);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Other helpers. 281 // Other helpers.
280 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); 282 void CancelAnyPendingRequestSurroundingText(PP_Instance instance);
281 283
282 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; 284 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_;
283 }; 285 };
284 286
285 } // namespace proxy 287 } // namespace proxy
286 } // namespace ppapi 288 } // namespace ppapi
287 289
288 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 290 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698