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

Unified Diff: chrome/browser/chromeos/ui/echo_dialog_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
« no previous file with comments | « chrome/browser/chromeos/ui/echo_dialog_view.h ('k') | chrome/browser/ui/app_list/search/tokenized_string.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/echo_dialog_view.cc
diff --git a/chrome/browser/chromeos/ui/echo_dialog_view.cc b/chrome/browser/chromeos/ui/echo_dialog_view.cc
index fde9b23cb2c0ddac36db80eb94f395c5f2b14795..9e78691a98c0f317ae21cf3ffec99302de3a7645 100644
--- a/chrome/browser/chromeos/ui/echo_dialog_view.cc
+++ b/chrome/browser/chromeos/ui/echo_dialog_view.cc
@@ -55,13 +55,13 @@ void EchoDialogView::InitForEnabledEcho(const string16& service_name,
service_name_style.font_style = gfx::Font::UNDERLINE;
service_name_style.tooltip = origin;
label_->AddStyleRange(
- ui::Range(offsets[0], offsets[0] + service_name.length()),
+ gfx::Range(offsets[0], offsets[0] + service_name.length()),
service_name_style);
views::StyledLabel::RangeStyleInfo link_style =
views::StyledLabel::RangeStyleInfo::CreateForLink();
link_style.font_style = gfx::Font::NORMAL;
- label_->AddStyleRange(ui::Range(offsets[1], offsets[1] + link.length()),
+ label_->AddStyleRange(gfx::Range(offsets[1], offsets[1] + link.length()),
link_style);
SetLabelBorderAndBounds();
@@ -85,7 +85,7 @@ void EchoDialogView::InitForDisabledEcho() {
views::StyledLabel::RangeStyleInfo link_style =
views::StyledLabel::RangeStyleInfo::CreateForLink();
link_style.font_style = gfx::Font::NORMAL;
- label_->AddStyleRange(ui::Range(offset, offset + link.length()), link_style);
+ label_->AddStyleRange(gfx::Range(offset, offset + link.length()), link_style);
SetLabelBorderAndBounds();
@@ -149,7 +149,7 @@ bool EchoDialogView::ShouldShowWindowIcon() const {
return false;
}
-void EchoDialogView::StyledLabelLinkClicked(const ui::Range& range,
+void EchoDialogView::StyledLabelLinkClicked(const gfx::Range& range,
int event_flags) {
if (!listener_)
return;
« no previous file with comments | « chrome/browser/chromeos/ui/echo_dialog_view.h ('k') | chrome/browser/ui/app_list/search/tokenized_string.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698