Changeset 69311 in webkit
- Timestamp:
- Oct 7, 2010 8:08:08 AM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r69295 r69311 1 2010-10-07 Dave Moore <davemoore@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 Add WebThemeEngine api for chromium/linux 6 https://bugs.webkit.org/show_bug.cgi?id=47278 7 Create new linux specific version of WinThemeEngine.h and move 8 existing windows specific one to win directory. Keep old top 9 level file until chromium is updated to use the new ones. 10 11 * WebKit.gyp: 12 * public/WebThemeEngine.h: 13 * src/ChromiumBridge.cpp: 14 1 15 2010-10-07 Andrey Kosyakov <caseq@chromium.org> 2 16 -
trunk/WebKit/chromium/WebKit.gyp
r69243 r69311 97 97 'public/linux/WebFontRenderStyle.h', 98 98 'public/linux/WebRenderTheme.h', 99 'public/linux/WebThemeEngine.h', 99 100 'public/x11/WebScreenInfoFactory.h', 100 101 'public/mac/WebInputEventFactory.h', … … 264 265 'public/WebTextInputType.h', 265 266 'public/WebTextRun.h', 266 'public/WebThemeEngine.h',267 267 'public/WebURL.h', 268 268 'public/WebURLError.h', … … 282 282 'public/win/WebSandboxSupport.h', 283 283 'public/win/WebScreenInfoFactory.h', 284 'public/win/WebThemeEngine.h', 284 285 'src/ApplicationCacheHost.cpp', 285 286 'src/ApplicationCacheHostInternal.h', -
trunk/WebKit/chromium/public/WebThemeEngine.h
r63589 r69311 40 40 struct WebSize; 41 41 42 // FIXME: This file has been moved to the win subdirectory as it's entirely 43 // windows dependent. Once chromium has been updated to access the file from 44 // there this file should be deleted. 42 45 class WebThemeEngine { 43 46 public: -
trunk/WebKit/chromium/public/linux/WebThemeEngine.h
r69310 r69311 32 32 #define WebThemeEngine_h 33 33 34 #include "WebCanvas.h" 35 #include "WebColor.h" 34 #include "../WebCanvas.h" 35 #include "../WebColor.h" 36 #include "../WebSize.h" 36 37 37 38 namespace WebKit { 38 39 39 40 struct WebRect; 40 struct WebSize;41 41 42 42 class WebThemeEngine { 43 43 public: 44 #ifdef WIN32 45 // The part and state parameters correspond to values defined by the 46 // Windows Theme API (see 47 // http://msdn.microsoft.com/en-us/library/bb773187(VS.85).aspx ). 48 // The classicState parameter corresponds to the uState 49 // parameter of the Windows DrawFrameControl() function. 50 // See the definitions in <vsstyle.h> and <winuser.h>. 51 virtual void paintButton( 52 WebCanvas*, int part, int state, int classicState, 53 const WebRect&) = 0; 44 // The UI part which is being accessed. 45 enum Part { 46 PartScrollbarDownArrow, 47 PartScrollbarLeftArrow, 48 PartScrollbarRightArrow, 49 PartScrollbarUpArrow, 50 PartScrollbarHorizontalThumb, 51 PartScrollbarVerticalThumb, 52 PartScrollbarHoriztonalTrack, 53 PartScrollbarVerticalTrack 54 }; 54 55 55 virtual void paintMenuList( 56 WebCanvas*, int part, int state, int classicState, 57 const WebRect&) = 0; 56 // The current state of the associated Part. 57 enum State { 58 StateDisabled, 59 StateHover, 60 StateNormal, 61 StatePressed, 62 }; 58 63 59 virtual void paintScrollbarArrow( 60 WebCanvas*, int state, int classicState, 61 const WebRect&) = 0; 64 // Extra parameters for drawing the PartScrollbarHoriztonalTrack and 65 // PartScrollbarVerticalTrack. 66 struct ScrollbarTrackExtraParams { 67 // The bounds of the entire track, as opposed to the part being painted. 68 int trackX; 69 int trackY; 70 int trackWidth; 71 int trackHeight; 72 }; 62 73 63 virtual void paintScrollbarThumb(64 WebCanvas*, int part, int state, int classicState,65 const WebRect&) = 0;74 union ExtraParams { 75 ScrollbarTrackExtraParams scrollbarTrack; 76 }; 66 77 67 virtual void paintScrollbarTrack( 68 WebCanvas*, int part, int state, int classicState, 69 const WebRect&, const WebRect& alignRect) = 0; 70 71 virtual void paintSpinButton( 72 WebCanvas*, int part, int state, int classicState, 73 const WebRect&) {} 74 75 virtual void paintTextField( 76 WebCanvas*, int part, int state, int classicState, 77 const WebRect&, WebColor, bool fillContentArea, bool drawEdges) = 0; 78 79 virtual void paintTrackbar( 80 WebCanvas*, int part, int state, int classicState, 81 const WebRect&) = 0; 82 83 virtual void paintProgressBar( 84 WebCanvas*, const WebRect& barRect, const WebRect& valueRect, 85 bool determinate, double animatedSeconds) {} 86 87 #endif 78 // Gets the size of the given theme part. For variable sized items 79 // like vertical scrollbar thumbs, the width will be the required width of 80 // the track while the height will be the minimum height. 81 virtual WebSize getSize(Part) { return WebSize(); } 82 // Paint the given the given theme part. 83 virtual void paint( 84 WebCanvas*, Part, State, const WebRect&, const ExtraParams*) {} 88 85 }; 89 86 -
trunk/WebKit/chromium/public/win/WebThemeEngine.h
r69310 r69311 32 32 #define WebThemeEngine_h 33 33 34 #include "WebCanvas.h" 35 #include "WebColor.h" 34 #include "../WebCanvas.h" 35 #include "../WebColor.h" 36 #include "../WebSize.h" 36 37 37 38 namespace WebKit { … … 42 43 class WebThemeEngine { 43 44 public: 44 #ifdef WIN3245 45 // The part and state parameters correspond to values defined by the 46 46 // Windows Theme API (see … … 84 84 WebCanvas*, const WebRect& barRect, const WebRect& valueRect, 85 85 bool determinate, double animatedSeconds) {} 86 87 #endif88 86 }; 89 87 -
trunk/WebKit/chromium/src/ChromiumBridge.cpp
r68112 r69311 64 64 #if OS(WINDOWS) 65 65 #include "WebRect.h" 66 #include " WebThemeEngine.h"66 #include "win/WebThemeEngine.h" 67 67 #endif 68 68
Note: See TracChangeset
for help on using the changeset viewer.