Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |