Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTheme.h

Issue 2801483002: Add DocumentMarker::MatchStatus enum for text match markers (Closed)
Patch Set: Use string in JavaScript API Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 * 20 *
21 */ 21 */
22 22
23 #ifndef LayoutTheme_h 23 #ifndef LayoutTheme_h
24 #define LayoutTheme_h 24 #define LayoutTheme_h
25 25
26 #include "core/CSSValueKeywords.h" 26 #include "core/CSSValueKeywords.h"
27 #include "core/CoreExport.h" 27 #include "core/CoreExport.h"
28 #include "core/editing/markers/DocumentMarker.h"
28 #include "platform/ThemeTypes.h" 29 #include "platform/ThemeTypes.h"
29 #include "platform/fonts/Font.h" 30 #include "platform/fonts/Font.h"
30 #include "platform/fonts/FontDescription.h" 31 #include "platform/fonts/FontDescription.h"
31 #include "platform/fonts/FontTraits.h" 32 #include "platform/fonts/FontTraits.h"
32 #include "platform/graphics/Color.h" 33 #include "platform/graphics/Color.h"
33 #include "platform/scroll/ScrollTypes.h" 34 #include "platform/scroll/ScrollTypes.h"
34 #include "platform/text/PlatformLocale.h" 35 #include "platform/text/PlatformLocale.h"
35 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
37 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Color activeSelectionForegroundColor() const; 125 Color activeSelectionForegroundColor() const;
125 Color inactiveSelectionForegroundColor() const; 126 Color inactiveSelectionForegroundColor() const;
126 127
127 // List box selection colors 128 // List box selection colors
128 Color activeListBoxSelectionBackgroundColor() const; 129 Color activeListBoxSelectionBackgroundColor() const;
129 Color activeListBoxSelectionForegroundColor() const; 130 Color activeListBoxSelectionForegroundColor() const;
130 Color inactiveListBoxSelectionBackgroundColor() const; 131 Color inactiveListBoxSelectionBackgroundColor() const;
131 Color inactiveListBoxSelectionForegroundColor() const; 132 Color inactiveListBoxSelectionForegroundColor() const;
132 133
133 // Highlight and text colors for TextMatches. 134 // Highlight and text colors for TextMatches.
134 Color platformTextSearchHighlightColor(bool activeMatch) const; 135 Color platformTextSearchHighlightColor(
135 Color platformTextSearchColor(bool activeMatch) const; 136 DocumentMarker::MatchStatus activeMatch) const;
137 Color platformTextSearchColor(DocumentMarker::MatchStatus activeMatch) const;
136 138
137 Color focusRingColor() const; 139 Color focusRingColor() const;
138 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } 140 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); }
139 void setCustomFocusRingColor(const Color&); 141 void setCustomFocusRingColor(const Color&);
140 static Color tapHighlightColor(); 142 static Color tapHighlightColor();
141 virtual Color platformTapHighlightColor() const { 143 virtual Color platformTapHighlightColor() const {
142 return LayoutTheme::defaultTapHighlightColor; 144 return LayoutTheme::defaultTapHighlightColor;
143 } 145 }
144 virtual Color platformDefaultCompositionBackgroundColor() const { 146 virtual Color platformDefaultCompositionBackgroundColor() const {
145 return defaultCompositionBackgroundColor; 147 return defaultCompositionBackgroundColor;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 static const RGBA32 defaultTapHighlightColor = 0x66000000; 292 static const RGBA32 defaultTapHighlightColor = 0x66000000;
291 293
292 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; 294 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55;
293 295
294 Theme* m_platformTheme; // The platform-specific theme. 296 Theme* m_platformTheme; // The platform-specific theme.
295 }; 297 };
296 298
297 } // namespace blink 299 } // namespace blink
298 300
299 #endif // LayoutTheme_h 301 #endif // LayoutTheme_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698