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

Unified Diff: ui/views/controls/label.h

Issue 231643002: Added labels under the windows in OverviewMode displaying their current name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests, code polishing Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/label.h
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
index 0964b036c511fd8c15f27d3e96a37213aebd278c..73dfea4e742bdc09a0ce7b35c5d0bea1998380be 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -94,6 +94,9 @@ class VIEWS_EXPORT Label : public View {
// Sets the drop shadow's offset from the text.
void SetShadowOffset(int x, int y);
+ // Sets the shadow blur. Default is zero.
+ void set_shadow_blur(double shadow_blur) { shadow_blur_ = shadow_blur; }
+
// Disables shadows.
void ClearEmbellishing();
@@ -267,6 +270,8 @@ class VIEWS_EXPORT Label : public View {
bool auto_color_readability_;
mutable gfx::Size text_size_;
mutable bool text_size_valid_;
+ // Indicates the level of shadow blurring. Default is zero.
+ double shadow_blur_;
int line_height_;
bool is_multi_line_;
bool is_obscured_;
@@ -291,6 +296,9 @@ class VIEWS_EXPORT Label : public View {
// Should a shadow be drawn behind the text?
bool has_shadow_;
+ // If true, surrender the text with the shadow. Default is false.
+ bool mirror_shadow_;
flackr 2014/04/17 03:44:29 unused, please remove.
Nina 2014/04/17 15:02:19 Snap, I though I had removed it. Done.
+
// The cached heights to avoid recalculation in GetHeightForWidth().
std::vector<gfx::Size> cached_heights_;
int cached_heights_cursor_;

Powered by Google App Engine
This is Rietveld 408576698