Changeset 53759 in webkit
- Timestamp:
- Jan 22, 2010 9:27:40 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53757 r53759 1 2010-01-22 Elliot Glaysher <erg@chromium.org> 2 3 Reviewed by David Levin. 4 5 Chromium: theme selection colors to match gtk theme 6 Add functions to RenderThemeChromiumLinux to change the selection color 7 according to the current GTK+ theme. 8 9 Since the change is to the Chromium WebKit API layer, testing is done 10 in Chromium's test shell (see Chromium side of this patch: 11 http://codereview.chromium.org/554004) 12 13 https://bugs.webkit.org/show_bug.cgi?id=33921 14 15 * rendering/RenderThemeChromiumLinux.cpp: 16 (WebCore::RenderThemeChromiumLinux::platformActiveSelectionBackgroundColor): 17 (WebCore::RenderThemeChromiumLinux::platformInactiveSelectionBackgroundColor): 18 (WebCore::RenderThemeChromiumLinux::platformActiveSelectionForegroundColor): 19 (WebCore::RenderThemeChromiumLinux::platformInactiveSelectionForegroundColor): 20 (WebCore::RenderThemeChromiumLinux::setSelectionColors): 21 * rendering/RenderThemeChromiumLinux.h: Adds static members. 22 1 23 2010-01-22 Kevin Watters <kevinwatters@gmail.com> 2 24 -
trunk/WebCore/rendering/RenderThemeChromiumLinux.cpp
r51872 r53759 36 36 unsigned RenderThemeChromiumLinux::m_thumbActiveColor = 0xfaf8f5; 37 37 unsigned RenderThemeChromiumLinux::m_trackColor = 0xe3ddd8; 38 unsigned RenderThemeChromiumLinux::m_activeSelectionBackgroundColor = 39 0xff1e90ff; 40 unsigned RenderThemeChromiumLinux::m_activeSelectionForegroundColor = 41 Color::black; 42 unsigned RenderThemeChromiumLinux::m_inactiveSelectionBackgroundColor = 43 0xffc8c8c8; 44 unsigned RenderThemeChromiumLinux::m_inactiveSelectionForegroundColor = 45 0xff323232; 38 46 39 47 PassRefPtr<RenderTheme> RenderThemeChromiumLinux::create() … … 97 105 } 98 106 107 Color RenderThemeChromiumLinux::platformActiveSelectionBackgroundColor() const 108 { 109 return m_activeSelectionBackgroundColor; 110 } 111 112 Color RenderThemeChromiumLinux::platformInactiveSelectionBackgroundColor() const 113 { 114 return m_inactiveSelectionBackgroundColor; 115 } 116 117 Color RenderThemeChromiumLinux::platformActiveSelectionForegroundColor() const 118 { 119 return m_activeSelectionForegroundColor; 120 } 121 122 Color RenderThemeChromiumLinux::platformInactiveSelectionForegroundColor() const 123 { 124 return m_inactiveSelectionForegroundColor; 125 } 126 99 127 void RenderThemeChromiumLinux::adjustSliderThumbSize(RenderObject* o) const 100 128 { … … 127 155 } 128 156 157 void RenderThemeChromiumLinux::setSelectionColors( 158 unsigned activeBackgroundColor, 159 unsigned activeForegroundColor, 160 unsigned inactiveBackgroundColor, 161 unsigned inactiveForegroundColor) 162 { 163 m_activeSelectionBackgroundColor = activeBackgroundColor; 164 m_activeSelectionForegroundColor = activeForegroundColor; 165 m_inactiveSelectionBackgroundColor = inactiveBackgroundColor; 166 m_inactiveSelectionForegroundColor = inactiveForegroundColor; 167 } 168 129 169 void RenderThemeChromiumLinux::setScrollbarColors( 130 170 SkColor inactiveColor, SkColor activeColor, SkColor trackColor) -
trunk/WebCore/rendering/RenderThemeChromiumLinux.h
r51827 r53759 50 50 virtual Color inactiveListBoxSelectionForegroundColor() const; 51 51 52 virtual Color platformActiveSelectionBackgroundColor() const; 53 virtual Color platformInactiveSelectionBackgroundColor() const; 54 virtual Color platformActiveSelectionForegroundColor() const; 55 virtual Color platformInactiveSelectionForegroundColor() const; 56 52 57 virtual void adjustSliderThumbSize(RenderObject*) const; 53 58 54 59 void setCaretBlinkInterval(double interval); 55 60 virtual double caretBlinkIntervalInternal() const; 61 62 static void setSelectionColors(unsigned activeBackgroundColor, 63 unsigned activeForegroundColor, 64 unsigned inactiveBackgroundColor, 65 unsigned inactiveForegroundColor); 56 66 57 67 static void setScrollbarColors(unsigned inactive_color, … … 71 81 double m_caretBlinkInterval; 72 82 83 static unsigned m_activeSelectionBackgroundColor; 84 static unsigned m_activeSelectionForegroundColor; 85 static unsigned m_inactiveSelectionBackgroundColor; 86 static unsigned m_inactiveSelectionForegroundColor; 87 73 88 static unsigned m_thumbInactiveColor; 74 89 static unsigned m_thumbActiveColor; -
trunk/WebKit/chromium/ChangeLog
r53758 r53759 1 2010-01-22 Elliot Glaysher <erg@chromium.org> 2 3 Reviewed by David Levin. 4 5 Chromium: theme selection colors to match gtk theme 6 Add functions to RenderThemeChromiumLinux to change the selection color 7 according to the current GTK+ theme. 8 9 Since the change is to the Chromium WebKit API layer, testing is done 10 in Chromium's test shell (see Chromium side of this patch: 11 http://codereview.chromium.org/554004) 12 13 https://bugs.webkit.org/show_bug.cgi?id=33921 14 15 * public/WebView.h: Adds interface to change the selection colors 16 * src/WebViewImpl.cpp: 17 (WebKit::WebViewImpl::setSelectionColors): Implements new interface. 18 * src/WebViewImpl.h: 19 1 20 2010-01-22 Steve VanDeBogart <vandebo@chromium.org> 2 21 -
trunk/WebKit/chromium/public/WebView.h
r51874 r53759 252 252 253 253 254 // Scrollbar colors----------------------------------------------------254 // Custom colors ------------------------------------------------------- 255 255 virtual void setScrollbarColors(unsigned inactiveColor, 256 256 unsigned activeColor, 257 257 unsigned trackColor) = 0; 258 258 259 virtual void setSelectionColors(unsigned activeBackgroundColor, 260 unsigned activeForegroundColor, 261 unsigned inactiveBackgroundColor, 262 unsigned inactiveForegroundColor) = 0; 263 259 264 protected: 260 265 ~WebView() {} -
trunk/WebKit/chromium/src/WebViewImpl.cpp
r53758 r53759 1655 1655 } 1656 1656 1657 void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor, 1658 unsigned activeForegroundColor, 1659 unsigned inactiveBackgroundColor, 1660 unsigned inactiveForegroundColor) { 1661 #if OS(LINUX) 1662 RenderThemeChromiumLinux::setSelectionColors(activeBackgroundColor, 1663 activeForegroundColor, 1664 inactiveBackgroundColor, 1665 inactiveForegroundColor); 1666 theme()->platformColorsDidChange(); 1667 #endif 1668 } 1669 1657 1670 void WebViewImpl::didCommitLoad(bool* isNewNavigation) 1658 1671 { -
trunk/WebKit/chromium/src/WebViewImpl.h
r53747 r53759 158 158 unsigned activeColor, 159 159 unsigned trackColor); 160 virtual void setSelectionColors(unsigned activeBackgroundColor, 161 unsigned activeForegroundColor, 162 unsigned inactiveBackgroundColor, 163 unsigned inactiveForegroundColor); 160 164 virtual void performCustomContextMenuAction(unsigned action); 161 165
Note: See TracChangeset
for help on using the changeset viewer.