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

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

Issue 11359063: Refactor the way singleton-style resources are exposed via PPB_Instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_time.h" 12 #include "ppapi/c/pp_time.h"
13 #include "ppapi/c/pp_var.h" 13 #include "ppapi/c/pp_var.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/proxy_completion_callback_factory.h" 15 #include "ppapi/proxy/proxy_completion_callback_factory.h"
16 #include "ppapi/shared_impl/host_resource.h" 16 #include "ppapi/shared_impl/host_resource.h"
17 #include "ppapi/shared_impl/ppb_instance_shared.h" 17 #include "ppapi/shared_impl/ppb_instance_shared.h"
18 #include "ppapi/shared_impl/singleton_resource_id.h"
18 #include "ppapi/thunk/ppb_instance_api.h" 19 #include "ppapi/thunk/ppb_instance_api.h"
19 #include "ppapi/utility/completion_callback_factory.h" 20 #include "ppapi/utility/completion_callback_factory.h"
20 21
21 // Windows headers interfere with this file. 22 // Windows headers interfere with this file.
22 #ifdef PostMessage 23 #ifdef PostMessage
23 #undef PostMessage 24 #undef PostMessage
24 #endif 25 #endif
25 26
26 struct PP_DecryptedBlockInfo; 27 struct PP_DecryptedBlockInfo;
27 struct PP_DecryptedFrameInfo; 28 struct PP_DecryptedFrameInfo;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int32_t total, 64 int32_t total,
64 PP_Bool final_result) OVERRIDE; 65 PP_Bool final_result) OVERRIDE;
65 virtual void SelectedFindResultChanged(PP_Instance instance, 66 virtual void SelectedFindResultChanged(PP_Instance instance,
66 int32_t index) OVERRIDE; 67 int32_t index) OVERRIDE;
67 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; 68 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE;
68 virtual PP_Bool SetFullscreen(PP_Instance instance, 69 virtual PP_Bool SetFullscreen(PP_Instance instance,
69 PP_Bool fullscreen) OVERRIDE; 70 PP_Bool fullscreen) OVERRIDE;
70 virtual PP_Bool GetScreenSize(PP_Instance instance, 71 virtual PP_Bool GetScreenSize(PP_Instance instance,
71 PP_Size* size) OVERRIDE; 72 PP_Size* size) OVERRIDE;
72 virtual thunk::PPB_Flash_API* GetFlashAPI() OVERRIDE; 73 virtual thunk::PPB_Flash_API* GetFlashAPI() OVERRIDE;
73 virtual thunk::PPB_Flash_Functions_API* GetFlashFunctionsAPI( 74 virtual Resource* GetSingletonResource(PP_Instance instance,
74 PP_Instance instance) OVERRIDE; 75 SingletonResourceID id) OVERRIDE;
75 virtual thunk::PPB_Flash_Clipboard_API* GetFlashClipboardAPI(
76 PP_Instance instance) OVERRIDE;
77 virtual thunk::PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) OVERRIDE;
78 virtual int32_t RequestInputEvents(PP_Instance instance, 76 virtual int32_t RequestInputEvents(PP_Instance instance,
79 uint32_t event_classes) OVERRIDE; 77 uint32_t event_classes) OVERRIDE;
80 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 78 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
81 uint32_t event_classes) OVERRIDE; 79 uint32_t event_classes) OVERRIDE;
82 virtual void ClearInputEventRequest(PP_Instance instance, 80 virtual void ClearInputEventRequest(PP_Instance instance,
83 uint32_t event_classes) OVERRIDE; 81 uint32_t event_classes) OVERRIDE;
84 virtual void ClosePendingUserGesture(PP_Instance instance, 82 virtual void ClosePendingUserGesture(PP_Instance instance,
85 PP_TimeTicks timestamp) OVERRIDE; 83 PP_TimeTicks timestamp) OVERRIDE;
86 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; 84 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE;
87 virtual void ZoomLimitsChanged(PP_Instance instance, 85 virtual void ZoomLimitsChanged(PP_Instance instance,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Other helpers. 273 // Other helpers.
276 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); 274 void CancelAnyPendingRequestSurroundingText(PP_Instance instance);
277 275
278 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; 276 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_;
279 }; 277 };
280 278
281 } // namespace proxy 279 } // namespace proxy
282 } // namespace ppapi 280 } // namespace ppapi
283 281
284 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 282 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698