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

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

Issue 9129007: Work on improving PpbAudioConfig:RecommendSampleFrameCount (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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) 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_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/dev/ppb_console_dev.h" 8 #include "ppapi/c/dev/ppb_console_dev.h"
9 #include "ppapi/c/dev/ppb_gamepad_dev.h" 9 #include "ppapi/c/dev/ppb_gamepad_dev.h"
10 #include "ppapi/c/dev/ppb_url_util_dev.h" 10 #include "ppapi/c/dev/ppb_url_util_dev.h"
11 #include "ppapi/c/pp_completion_callback.h" 11 #include "ppapi/c/pp_completion_callback.h"
12 #include "ppapi/c/ppb_audio_config.h"
12 #include "ppapi/c/ppb_instance.h" 13 #include "ppapi/c/ppb_instance.h"
13 #include "ppapi/c/pp_bool.h" 14 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_size.h" 15 #include "ppapi/c/pp_size.h"
15 #include "ppapi/c/private/ppb_instance_private.h" 16 #include "ppapi/c/private/ppb_instance_private.h"
16 #include "ppapi/shared_impl/api_id.h" 17 #include "ppapi/shared_impl/api_id.h"
17 18
18 // Windows headers interfere with this file. 19 // Windows headers interfere with this file.
19 #ifdef PostMessage 20 #ifdef PostMessage
20 #undef PostMessage 21 #undef PostMessage
21 #endif 22 #endif
(...skipping 14 matching lines...) Expand all
36 // Not an exposed PPAPI function, this returns the internal view data struct. 37 // Not an exposed PPAPI function, this returns the internal view data struct.
37 virtual const ViewData* GetViewData(PP_Instance instance) = 0; 38 virtual const ViewData* GetViewData(PP_Instance instance) = 0;
38 39
39 // InstancePrivate. 40 // InstancePrivate.
40 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; 41 virtual PP_Var GetWindowObject(PP_Instance instance) = 0;
41 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; 42 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0;
42 virtual PP_Var ExecuteScript(PP_Instance instance, 43 virtual PP_Var ExecuteScript(PP_Instance instance,
43 PP_Var script, 44 PP_Var script,
44 PP_Var* exception) = 0; 45 PP_Var* exception) = 0;
45 46
47 // Audio.
48 virtual uint32_t AudioHardwareOutputSampleRate(PP_Instance instance) = 0;
49 virtual uint32_t AudioHardwareOutputBufferSize(PP_Instance instance) = 0;
50
46 // CharSet. 51 // CharSet.
47 virtual PP_Var GetDefaultCharSet(PP_Instance instance) = 0; 52 virtual PP_Var GetDefaultCharSet(PP_Instance instance) = 0;
48 53
49 // Console. 54 // Console.
50 virtual void Log(PP_Instance instance, 55 virtual void Log(PP_Instance instance,
51 PP_LogLevel_Dev log_level, 56 PP_LogLevel_Dev log_level,
52 PP_Var value) = 0; 57 PP_Var value) = 0;
53 virtual void LogWithSource(PP_Instance instance, 58 virtual void LogWithSource(PP_Instance instance,
54 PP_LogLevel_Dev log_level, 59 PP_LogLevel_Dev log_level,
55 PP_Var source, 60 PP_Var source,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 117 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
113 PP_URLComponents_Dev* components) = 0; 118 PP_URLComponents_Dev* components) = 0;
114 119
115 static const ApiID kApiID = API_ID_PPB_INSTANCE; 120 static const ApiID kApiID = API_ID_PPB_INSTANCE;
116 }; 121 };
117 122
118 } // namespace thunk 123 } // namespace thunk
119 } // namespace ppapi 124 } // namespace ppapi
120 125
121 #endif // PPAPI_THUNK_INSTANCE_API_H_ 126 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698