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

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

Issue 9837059: Cleanup for views::Label: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « chrome/browser/ui/views/location_bar/selected_keyword_view.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
===================================================================
--- ui/views/controls/label.h (revision 128075)
+++ ui/views/controls/label.h (working copy)
@@ -63,18 +63,15 @@
// Set the label text.
void SetText(const string16& text);
+ // Set URL Value - text_ is set to spec().
+ void SetURL(const GURL& url);
+
// Return the font used by this label.
gfx::Font font() const { return font_; }
// Return the label text.
- const string16 GetText() const;
+ string16 text() const { return text_; };
- // Set URL Value - text_ is set to spec().
- void SetURL(const GURL& url);
-
- // Return the label URL.
- const GURL GetURL() const;
-
// Enables or disables auto-color-readability (enabled by default). If this
// is enabled, then calls to set any foreground or background color will
// trigger an automatic mapper that uses color_utils::GetReadableColor() to
@@ -263,7 +260,6 @@
bool is_multi_line_;
bool allow_character_break_;
bool elide_in_middle_;
- bool url_set_;
Alignment horiz_alignment_;
string16 tooltip_text_;
// Whether the mouse is over this label.
« no previous file with comments | « chrome/browser/ui/views/location_bar/selected_keyword_view.cc ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698