summaryrefslogtreecommitdiffstats
path: root/WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h')
-rw-r--r--WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h b/WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
index 445b292..80830a7 100644
--- a/WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
+++ b/WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
@@ -28,6 +28,7 @@
struct CGAffineTransform;
struct CGPoint;
+struct CGRect;
struct CGSize;
typedef const struct __CFData* CFDataRef;
@@ -89,4 +90,46 @@ CFURLCredentialRef wkCopyCredentialFromCFPersistentStorage(CFURLProtectionSpaceR
CFStringRef wkCFNetworkErrorGetLocalizedDescription(CFIndex errorCode);
+typedef enum {
+ WKMediaUIPartFullscreenButton = 0,
+ WKMediaUIPartMuteButton,
+ WKMediaUIPartPlayButton,
+ WKMediaUIPartSeekBackButton,
+ WKMediaUIPartSeekForwardButton,
+ WKMediaUIPartTimelineSlider,
+ WKMediaUIPartTimelineSliderThumb,
+ WKMediaUIPartRewindButton,
+ WKMediaUIPartSeekToRealtimeButton,
+ WKMediaUIPartShowClosedCaptionsButton,
+ WKMediaUIPartHideClosedCaptionsButton,
+ WKMediaUIPartUnMuteButton,
+ WKMediaUIPartPauseButton,
+ WKMediaUIPartBackground,
+ WKMediaUIPartCurrentTimeDisplay,
+ WKMediaUIPartTimeRemainingDisplay,
+ WKMediaUIPartStatusDisplay,
+ WKMediaUIPartControlsPanel,
+ WKMediaUIPartVolumeSliderContainer,
+ WKMediaUIPartVolumeSlider,
+ WKMediaUIPartVolumeSliderThumb
+} WKMediaUIPart;
+
+typedef enum {
+ WKMediaControllerThemeClassic = 1,
+ WKMediaControllerThemeQuickTime = 2
+} WKMediaControllerThemeStyle;
+
+typedef enum {
+ WKMediaControllerFlagDisabled = 1 << 0,
+ WKMediaControllerFlagPressed = 1 << 1,
+ WKMediaControllerFlagDrawEndCaps = 1 << 3,
+ WKMediaControllerFlagFocused = 1 << 4
+} WKMediaControllerThemeState;
+
+bool WKMediaControllerThemeAvailable(int themeStyle);
+bool WKHitTestMediaUIPart(int part, int themeStyle, CGRect bounds, CGPoint point);
+void WKMeasureMediaUIPart(int part, int themeStyle, CGRect *bounds, CGSize *naturalSize);
+void WKDrawMediaUIPart(int part, int themeStyle, CGContextRef context, CGRect rect, unsigned state);
+void WKDrawMediaSliderTrack(int themeStyle, CGContextRef context, CGRect rect, float timeLoaded, float currentTime, float duration, unsigned state);
+
#endif // WebKitSystemInterface_h