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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 // Copyright 2013 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #include <vector>
7
8 #include "base/string16.h"
9 #include "googleurl/src/gurl.h"
10 #include "ui/views/view.h"
11
12 namespace views {
13
14 class VIEWS_EXPORT RichLabel : public View {
15 public:
16 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
17 const std::vector<GURL>& urls);
18 virtual ~RichLabel();
19
20 virtual gfx::Size GetPreferredSize() OVERRIDE;
21 virtual void Layout() OVERRIDE;
22
23 private:
24 std::vector<string16> strings_;
25 std::vector<GURL> urls_;
26 };
27
28 } // namespace views
OLDNEW
« 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