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

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: Follow-up fixes 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
« no previous file with comments | « ash/wm/overview/window_selector_window.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.h
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h
index 0964b036c511fd8c15f27d3e96a37213aebd278c..4621d6af73ec6121d58b4007d45a3db7737c71b2 100644
--- a/ui/views/controls/label.h
+++ b/ui/views/controls/label.h
@@ -94,6 +94,10 @@ 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.
+ double shadow_blur() const { return shadow_blur_; }
sadrul 2014/04/16 21:18:33 Doesn't look like this is used anywhere?
+ void set_shadow_blur(double shadow_blur) { shadow_blur_ = shadow_blur; }
+
// Disables shadows.
void ClearEmbellishing();
@@ -267,6 +271,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 +297,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_;
+
// The cached heights to avoid recalculation in GetHeightForWidth().
std::vector<gfx::Size> cached_heights_;
int cached_heights_cursor_;
« no previous file with comments | « ash/wm/overview/window_selector_window.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698