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

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

Issue 12543032: Add views::RichLabel, a class which creates multi-line text with mixed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/autofill/autofill_dialog_views.cc ('k') | ui/views/controls/rich_label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/rich_label.h
diff --git a/ui/views/controls/rich_label.h b/ui/views/controls/rich_label.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d29fdc76e4a86c28d261440c462bb5ca6a45a4f
--- /dev/null
+++ b/ui/views/controls/rich_label.h
@@ -0,0 +1,28 @@
+
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <vector>
+
+#include "base/string16.h"
+#include "googleurl/src/gurl.h"
+#include "ui/views/view.h"
+
+namespace views {
+
+class VIEWS_EXPORT RichLabel : public View {
+ public:
+ RichLabel(const std::vector<string16>& text,
sky 2013/03/12 13:45:59 I get that you want this interface, but its awkwar
msw 2013/03/12 19:48:27 Ditto to Scott's points; also see my general CL co
+ const std::vector<GURL>& urls);
+ virtual ~RichLabel();
+
+ virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual void Layout() OVERRIDE;
+
+ private:
+ std::vector<string16> strings_;
+ std::vector<GURL> urls_;
+};
+
+} // namespace views
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | ui/views/controls/rich_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698