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

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

Issue 7740038: Use macros to define pepper interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review 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
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/ppb_instance.h" 8 #include "ppapi/c/ppb_instance.h"
9 #include "ppapi/c/pp_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_size.h" 10 #include "ppapi/c/pp_size.h"
(...skipping 10 matching lines...) Expand all
21 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; 21 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0;
22 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; 22 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0;
23 23
24 // InstancePrivate. 24 // InstancePrivate.
25 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; 25 virtual PP_Var GetWindowObject(PP_Instance instance) = 0;
26 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; 26 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0;
27 virtual PP_Var ExecuteScript(PP_Instance instance, 27 virtual PP_Var ExecuteScript(PP_Instance instance,
28 PP_Var script, 28 PP_Var script,
29 PP_Var* exception) = 0; 29 PP_Var* exception) = 0;
30 30
31 // Console.
32 virtual void Log(PP_Instance instance,
33 int log_level,
34 PP_Var value) = 0;
35 virtual void LogWithSource(PP_Instance instance,
36 int log_level,
37 PP_Var source,
38 PP_Var value) = 0;
39
31 // Fullscreen. 40 // Fullscreen.
32 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; 41 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0;
33 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; 42 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0;
34 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; 43 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0;
35 44
36 // InputEvent. 45 // InputEvent.
37 virtual int32_t RequestInputEvents(PP_Instance instance, 46 virtual int32_t RequestInputEvents(PP_Instance instance,
38 uint32_t event_classes) = 0; 47 uint32_t event_classes) = 0;
39 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 48 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
40 uint32_t event_classes) = 0; 49 uint32_t event_classes) = 0;
(...skipping 13 matching lines...) Expand all
54 virtual void SubscribeToPolicyUpdates(PP_Instance instance) = 0; 63 virtual void SubscribeToPolicyUpdates(PP_Instance instance) = 0;
55 64
56 static const proxy::InterfaceID interface_id = 65 static const proxy::InterfaceID interface_id =
57 proxy::INTERFACE_ID_PPB_INSTANCE; 66 proxy::INTERFACE_ID_PPB_INSTANCE;
58 }; 67 };
59 68
60 } // namespace thunk 69 } // namespace thunk
61 } // namespace ppapi 70 } // namespace ppapi
62 71
63 #endif // PPAPI_THUNK_INSTANCE_API_H_ 72 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698