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

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

Issue 1186523004: Rename adjustPaintInvalidationRect and related to addVisualOverflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 *
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // controls that need to do this. 79 // controls that need to do this.
80 virtual int baselinePosition(const LayoutObject*) const; 80 virtual int baselinePosition(const LayoutObject*) const;
81 81
82 // A method for asking if a control is a container or not. Leaf controls ha ve to have some special behavior (like 82 // A method for asking if a control is a container or not. Leaf controls ha ve to have some special behavior (like
83 // the baseline position API above). 83 // the baseline position API above).
84 bool isControlContainer(ControlPart) const; 84 bool isControlContainer(ControlPart) const;
85 85
86 // Whether or not the control has been styled enough by the author to disabl e the native appearance. 86 // Whether or not the control has been styled enough by the author to disabl e the native appearance.
87 virtual bool isControlStyled(const ComputedStyle&, const AuthorStyleInfo&) c onst; 87 virtual bool isControlStyled(const ComputedStyle&, const AuthorStyleInfo&) c onst;
88 88
89 // Some controls may spill out of their containers (e.g., the check on an OS X checkbox). When these controls issues paint invalidations, 89 // Some controls may spill out of their containers (e.g., the check on an OS X 10.9 checkbox). Add this
90 // the theme needs to communicate this inflated rect to the engine so that i t can invalidate the whole control. 90 // "visual overflow" to the object's border box rect.
91 virtual void adjustPaintInvalidationRect(const LayoutObject*, IntRect&); 91 virtual void addVisualOverflow(const LayoutObject&, IntRect& borderBox);
92 92
93 // This method is called whenever a control state changes on a particular th emed object, e.g., the mouse becomes pressed 93 // This method is called whenever a control state changes on a particular th emed object, e.g., the mouse becomes pressed
94 // or a control becomes disabled. The ControlState parameter indicates which state has changed (from having to not having, 94 // or a control becomes disabled. The ControlState parameter indicates which state has changed (from having to not having,
95 // or vice versa). 95 // or vice versa).
96 bool controlStateChanged(LayoutObject&, ControlState) const; 96 bool controlStateChanged(LayoutObject&, ControlState) const;
97 97
98 bool shouldDrawDefaultFocusRing(LayoutObject*) const; 98 bool shouldDrawDefaultFocusRing(LayoutObject*) const;
99 99
100 // A method asking if the theme's controls actually care about redrawing whe n hovered. 100 // A method asking if the theme's controls actually care about redrawing whe n hovered.
101 virtual bool supportsHover(const ComputedStyle&) const { return false; } 101 virtual bool supportsHover(const ComputedStyle&) const { return false; }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; 249 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55;
250 250
251 #if USE(NEW_THEME) 251 #if USE(NEW_THEME)
252 Theme* m_platformTheme; // The platform-specific theme. 252 Theme* m_platformTheme; // The platform-specific theme.
253 #endif 253 #endif
254 }; 254 };
255 255
256 } // namespace blink 256 } // namespace blink
257 257
258 #endif // LayoutTheme_h 258 #endif // LayoutTheme_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698