diff options
author | Steve Block <steveblock@google.com> | 2010-09-29 17:32:26 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-29 17:35:08 +0100 |
commit | 68513a70bcd92384395513322f1b801e7bf9c729 (patch) | |
tree | 161b50f75a5921d61731bb25e730005994fcec85 /WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h | |
parent | fd5c6425ce58eb75211be7718d5dee960842a37e (diff) | |
download | external_webkit-68513a70bcd92384395513322f1b801e7bf9c729.zip external_webkit-68513a70bcd92384395513322f1b801e7bf9c729.tar.gz external_webkit-68513a70bcd92384395513322f1b801e7bf9c729.tar.bz2 |
Merge WebKit at r67908: Initial merge by Git
Change-Id: I43a553e7b3299b28cb6ee8aa035ed70fe342b972
Diffstat (limited to 'WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h')
-rw-r--r-- | WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h | 43 |
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 |