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

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 7874002: This patch tries to remove most of the manual registration for Pepper interfaces, and replaces it... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_input_event_thunk.cc ('k') | ppapi/thunk/ppb_instance_thunk.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) 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_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 "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/ppb_instance.h" 9 #include "ppapi/c/ppb_instance.h"
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
(...skipping 11 matching lines...) Expand all
22 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; 22 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0;
23 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; 23 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0;
24 24
25 // InstancePrivate. 25 // InstancePrivate.
26 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; 26 virtual PP_Var GetWindowObject(PP_Instance instance) = 0;
27 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; 27 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0;
28 virtual PP_Var ExecuteScript(PP_Instance instance, 28 virtual PP_Var ExecuteScript(PP_Instance instance,
29 PP_Var script, 29 PP_Var script,
30 PP_Var* exception) = 0; 30 PP_Var* exception) = 0;
31 31
32 // Console.
33 virtual void Log(PP_Instance instance,
34 int log_level,
35 PP_Var value) = 0;
36 virtual void LogWithSource(PP_Instance instance,
37 int log_level,
38 PP_Var source,
39 PP_Var value) = 0;
40
32 // Fullscreen. 41 // Fullscreen.
33 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; 42 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0;
34 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; 43 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0;
35 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; 44 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0;
36 45
37 // InputEvent. 46 // InputEvent.
38 virtual int32_t RequestInputEvents(PP_Instance instance, 47 virtual int32_t RequestInputEvents(PP_Instance instance,
39 uint32_t event_classes) = 0; 48 uint32_t event_classes) = 0;
40 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 49 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
41 uint32_t event_classes) = 0; 50 uint32_t event_classes) = 0;
(...skipping 18 matching lines...) Expand all
60 virtual void SubscribeToPolicyUpdates(PP_Instance instance) = 0; 69 virtual void SubscribeToPolicyUpdates(PP_Instance instance) = 0;
61 70
62 static const proxy::InterfaceID interface_id = 71 static const proxy::InterfaceID interface_id =
63 proxy::INTERFACE_ID_PPB_INSTANCE; 72 proxy::INTERFACE_ID_PPB_INSTANCE;
64 }; 73 };
65 74
66 } // namespace thunk 75 } // namespace thunk
67 } // namespace ppapi 76 } // namespace ppapi
68 77
69 #endif // PPAPI_THUNK_INSTANCE_API_H_ 78 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_input_event_thunk.cc ('k') | ppapi/thunk/ppb_instance_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698