OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/views/sync/bubble_sync_promo_view.h" | 5 #include "chrome/browser/ui/views/sync/bubble_sync_promo_view.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" | 10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" |
11 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 #include "ui/gfx/font.h" | 13 #include "ui/gfx/font.h" |
14 #include "ui/views/controls/styled_label.h" | 14 #include "ui/views/controls/styled_label.h" |
15 #include "ui/views/layout/fill_layout.h" | 15 #include "ui/views/layout/fill_layout.h" |
16 #include "ui/views/layout/layout_constants.h" | |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
20 // Color of the text of the promo. | 19 // Color of the text of the promo. |
21 const SkColor kTextColor = SkColorSetRGB(102, 102, 102); | 20 const SkColor kTextColor = SkColorSetRGB(102, 102, 102); |
22 | 21 |
23 } // namespace | 22 } // namespace |
24 | 23 |
25 BubbleSyncPromoView::BubbleSyncPromoView(BubbleSyncPromoDelegate* delegate, | 24 BubbleSyncPromoView::BubbleSyncPromoView(BubbleSyncPromoDelegate* delegate, |
26 int link_text_resource_id, | 25 int link_text_resource_id, |
(...skipping 24 matching lines...) Expand all Loading... |
51 | 50 |
52 const char* BubbleSyncPromoView::GetClassName() const { | 51 const char* BubbleSyncPromoView::GetClassName() const { |
53 return "BubbleSyncPromoView"; | 52 return "BubbleSyncPromoView"; |
54 } | 53 } |
55 | 54 |
56 void BubbleSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label, | 55 void BubbleSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label, |
57 const gfx::Range& range, | 56 const gfx::Range& range, |
58 int event_flags) { | 57 int event_flags) { |
59 delegate_->OnSignInLinkClicked(); | 58 delegate_->OnSignInLinkClicked(); |
60 } | 59 } |
OLD | NEW |