| 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/bookmarks/bookmark_sync_promo_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h" | 8 #include "chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h" |
| 9 #include "chrome/grit/chromium_strings.h" | 9 #include "chrome/grit/chromium_strings.h" |
| 10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 promo_label->AddStyleRange(after_link_range, promo_style); | 64 promo_label->AddStyleRange(after_link_range, promo_style); |
| 65 | 65 |
| 66 views::BoxLayout* layout = new views::BoxLayout(views::BoxLayout::kVertical, | 66 views::BoxLayout* layout = new views::BoxLayout(views::BoxLayout::kVertical, |
| 67 views::kButtonHEdgeMarginNew, | 67 views::kButtonHEdgeMarginNew, |
| 68 views::kPanelVertMargin, | 68 views::kPanelVertMargin, |
| 69 0); | 69 0); |
| 70 SetLayoutManager(layout); | 70 SetLayoutManager(layout); |
| 71 AddChildView(promo_label); | 71 AddChildView(promo_label); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void BookmarkSyncPromoView::StyledLabelLinkClicked(const gfx::Range& range, | 74 void BookmarkSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label, |
| 75 const gfx::Range& range, |
| 75 int event_flags) { | 76 int event_flags) { |
| 76 delegate_->OnSignInLinkClicked(); | 77 delegate_->OnSignInLinkClicked(); |
| 77 } | 78 } |
| 78 | 79 |
| 79 const char* BookmarkSyncPromoView::GetClassName() const { | 80 const char* BookmarkSyncPromoView::GetClassName() const { |
| 80 return "BookmarkSyncPromoView"; | 81 return "BookmarkSyncPromoView"; |
| 81 } | 82 } |
| OLD | NEW |