Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc
index ef722e8db27c343305a67bee44bf837ef0539bba..3539669f79e45e35d51b1c5253b580cdfe1d8d5a 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.cc
@@ -52,15 +52,15 @@ BookmarkSyncPromoView::BookmarkSyncPromoView(BookmarkBubbleDelegate* delegate)
views::StyledLabel::RangeStyleInfo link_style =
views::StyledLabel::RangeStyleInfo::CreateForLink();
link_style.font_style = gfx::Font::NORMAL;
- promo_label->AddStyleRange(ui::Range(offset, offset + link_text.length()),
+ promo_label->AddStyleRange(gfx::Range(offset, offset + link_text.length()),
link_style);
views::StyledLabel::RangeStyleInfo promo_style;
promo_style.color = kTextColor;
- ui::Range before_link_range(0, offset);
+ gfx::Range before_link_range(0, offset);
if (!before_link_range.is_empty())
promo_label->AddStyleRange(before_link_range, promo_style);
- ui::Range after_link_range(offset + link_text.length(), promo_text.length());
+ gfx::Range after_link_range(offset + link_text.length(), promo_text.length());
if (!after_link_range.is_empty())
promo_label->AddStyleRange(after_link_range, promo_style);
@@ -72,7 +72,7 @@ BookmarkSyncPromoView::BookmarkSyncPromoView(BookmarkBubbleDelegate* delegate)
AddChildView(promo_label);
}
-void BookmarkSyncPromoView::StyledLabelLinkClicked(const ui::Range& range,
+void BookmarkSyncPromoView::StyledLabelLinkClicked(const gfx::Range& range,
int event_flags) {
delegate_->OnSignInLinkClicked();
}

Powered by Google App Engine
This is Rietveld 408576698