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
3 // found in the LICENSE file.
5 #ifndef PPAPI_CPP_PRIVATE_FLASH_H_
6 #define PPAPI_CPP_PRIVATE_FLASH_H_
11 #include "ppapi/c/private/ppb_flash.h"
12 #include "ppapi/c/pp_stdint.h"
13 #include "ppapi/c/pp_time.h"
19 class BrowserFontDescription
;
28 class VideoCapture_Dev
;
34 // Returns true if the required interface is available.
35 static bool IsAvailable();
37 static void SetInstanceAlwaysOnTop(const InstanceHandle
& instance
,
39 static bool DrawGlyphs(const InstanceHandle
& instance
,
41 const BrowserFontDescription
& font_desc
,
43 const Point
& position
,
45 const float transformation
[3][3],
46 bool allow_subpixel_aa
,
48 const uint16_t glyph_indices
[],
49 const PP_Point glyph_advances
[]);
50 static Var
GetProxyForURL(const InstanceHandle
& instance
,
51 const std::string
& url
);
52 static int32_t Navigate(const URLRequestInfo
& request_info
,
53 const std::string
& target
,
54 bool from_user_action
);
55 static void RunMessageLoop(const InstanceHandle
& instance
);
56 static void QuitMessageLoop(const InstanceHandle
& instance
);
57 static double GetLocalTimeZoneOffset(const InstanceHandle
& instance
,
59 static Var
GetCommandLineArgs(Module
* module
);
60 static void PreloadFontWin(const void* logfontw
);
61 static bool IsRectTopmost(const InstanceHandle
& instance
, const Rect
& rect
);
62 static void UpdateActivity(const InstanceHandle
& instance
);
63 static Var
GetDeviceID(const InstanceHandle
& instance
);
64 static Var
GetSetting(const InstanceHandle
& instance
,
65 PP_FlashSetting setting
);
66 static bool SetCrashData(const InstanceHandle
& instance
,
68 const pp::Var
& value
);
69 static int32_t EnumerateVideoCaptureDevices(const InstanceHandle
& instance
,
70 const VideoCapture_Dev
& video_capture
,
71 std::vector
<DeviceRef_Dev
>* devices_out
);
74 static bool InvokePrinting(const InstanceHandle
& instance
);
80 #endif // PPAPI_CPP_PRIVATE_FLASH_H_