| 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> |
| 8 |
| 7 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 8 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" | 10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 11 #include "ui/gfx/font.h" | 13 #include "ui/gfx/font.h" |
| 12 #include "ui/views/background.h" | 14 #include "ui/views/background.h" |
| 13 #include "ui/views/border.h" | 15 #include "ui/views/border.h" |
| 14 #include "ui/views/controls/styled_label.h" | 16 #include "ui/views/controls/styled_label.h" |
| 15 #include "ui/views/layout/box_layout.h" | 17 #include "ui/views/layout/box_layout.h" |
| 16 #include "ui/views/layout/layout_constants.h" | 18 #include "ui/views/layout/layout_constants.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 73 |
| 72 void BubbleSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label, | 74 void BubbleSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label, |
| 73 const gfx::Range& range, | 75 const gfx::Range& range, |
| 74 int event_flags) { | 76 int event_flags) { |
| 75 delegate_->OnSignInLinkClicked(); | 77 delegate_->OnSignInLinkClicked(); |
| 76 } | 78 } |
| 77 | 79 |
| 78 const char* BubbleSyncPromoView::GetClassName() const { | 80 const char* BubbleSyncPromoView::GetClassName() const { |
| 79 return "BubbleSyncPromoView"; | 81 return "BubbleSyncPromoView"; |
| 80 } | 82 } |
| OLD | NEW |