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

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

Issue 10913257: Convert url request info to new proxy API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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/shared_impl/url_request_info_data.cc ('k') | ppapi/thunk/ppb_url_loader_api.h » ('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_THUNK_PPB_FLASH_API_H_ 5 #ifndef PPAPI_THUNK_PPB_FLASH_API_H_
6 #define PPAPI_THUNK_PPB_FLASH_API_H_ 6 #define PPAPI_THUNK_PPB_FLASH_API_H_
7 7
8 #include "ppapi/c/private/ppb_flash.h" 8 #include "ppapi/c/private/ppb_flash.h"
9 #include "ppapi/c/private/ppb_flash_clipboard.h" 9 #include "ppapi/c/private/ppb_flash_clipboard.h"
10 #include "ppapi/c/private/ppb_flash_file.h" 10 #include "ppapi/c/private/ppb_flash_file.h"
11 #include "ppapi/thunk/ppapi_thunk_export.h" 11 #include "ppapi/thunk/ppapi_thunk_export.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14
15 struct URLRequestInfoData;
16
14 namespace thunk { 17 namespace thunk {
15 18
16 // This class collects all of the Flash interface-related APIs into one place. 19 // This class collects all of the Flash interface-related APIs into one place.
17 class PPAPI_THUNK_EXPORT PPB_Flash_API { 20 class PPAPI_THUNK_EXPORT PPB_Flash_API {
18 public: 21 public:
19 virtual ~PPB_Flash_API() {} 22 virtual ~PPB_Flash_API() {}
20 23
21 // Flash. 24 // Flash.
22 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, PP_Bool on_top) = 0; 25 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, PP_Bool on_top) = 0;
23 virtual PP_Bool DrawGlyphs(PP_Instance instance, 26 virtual PP_Bool DrawGlyphs(PP_Instance instance,
24 PP_Resource pp_image_data, 27 PP_Resource pp_image_data,
25 const PP_FontDescription_Dev* font_desc, 28 const PP_FontDescription_Dev* font_desc,
26 uint32_t color, 29 uint32_t color,
27 const PP_Point* position, 30 const PP_Point* position,
28 const PP_Rect* clip, 31 const PP_Rect* clip,
29 const float transformation[3][3], 32 const float transformation[3][3],
30 PP_Bool allow_subpixel_aa, 33 PP_Bool allow_subpixel_aa,
31 uint32_t glyph_count, 34 uint32_t glyph_count,
32 const uint16_t glyph_indices[], 35 const uint16_t glyph_indices[],
33 const PP_Point glyph_advances[]) = 0; 36 const PP_Point glyph_advances[]) = 0;
34 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) = 0; 37 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) = 0;
38
39 // External function that takes a PPB_URLRequestInfo resource.
35 virtual int32_t Navigate(PP_Instance instance, 40 virtual int32_t Navigate(PP_Instance instance,
36 PP_Resource request_info, 41 PP_Resource request_info,
37 const char* target, 42 const char* target,
38 PP_Bool from_user_action) = 0; 43 PP_Bool from_user_action) = 0;
44
45 // Internal navigate function that takes a URLRequestInfoData.
46 virtual int32_t Navigate(PP_Instance instance,
47 const URLRequestInfoData& data,
48 const char* target,
49 PP_Bool from_user_action) = 0;
50
39 virtual void RunMessageLoop(PP_Instance instance) = 0; 51 virtual void RunMessageLoop(PP_Instance instance) = 0;
40 virtual void QuitMessageLoop(PP_Instance instance) = 0; 52 virtual void QuitMessageLoop(PP_Instance instance) = 0;
41 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; 53 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0;
42 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; 54 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0;
43 virtual void UpdateActivity(PP_Instance instance) = 0; 55 virtual void UpdateActivity(PP_Instance instance) = 0;
44 virtual PP_Var GetDeviceID(PP_Instance instance) = 0; 56 virtual PP_Var GetDeviceID(PP_Instance instance) = 0;
45 virtual int32_t GetSettingInt(PP_Instance instance, 57 virtual int32_t GetSettingInt(PP_Instance instance,
46 PP_FlashSetting setting) = 0; 58 PP_FlashSetting setting) = 0;
47 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; 59 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0;
48 virtual PP_Bool SetCrashData(PP_Instance instance, 60 virtual PP_Bool SetCrashData(PP_Instance instance,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; 113 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0;
102 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 114 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
103 PP_Bool fullscreen) = 0; 115 PP_Bool fullscreen) = 0;
104 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; 116 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0;
105 }; 117 };
106 118
107 } // namespace thunk 119 } // namespace thunk
108 } // namespace ppapi 120 } // namespace ppapi
109 121
110 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ 122 #endif // PPAPI_THUNK_PPB_FLASH_API_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/url_request_info_data.cc ('k') | ppapi/thunk/ppb_url_loader_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698