Chromium Code Reviews| 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 |