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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.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/autofill/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index 27f43d72a03d39266c49c8240e4269b164629b04..4599073f812a256b6008f1a12a0fa6fc553f0127 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -841,7 +841,7 @@ DialogOverlayState AutofillDialogControllerImpl::GetDialogOverlay() const {
return state;
}
-const std::vector<ui::Range>& AutofillDialogControllerImpl::
+const std::vector<gfx::Range>& AutofillDialogControllerImpl::
LegalDocumentLinks() {
EnsureLegalDocumentsText();
return legal_document_link_ranges_;
@@ -1034,7 +1034,7 @@ void AutofillDialogControllerImpl::EnsureLegalDocumentsText() {
legal_document_link_ranges_.clear();
for (size_t i = 0; i < documents.size(); ++i) {
size_t link_start = text.find(documents[i]->display_name());
- legal_document_link_ranges_.push_back(ui::Range(
+ legal_document_link_ranges_.push_back(gfx::Range(
link_start, link_start + documents[i]->display_name().size()));
}
legal_documents_text_ = text;
@@ -1890,7 +1890,7 @@ void AutofillDialogControllerImpl::NotificationCheckboxStateChanged(
}
void AutofillDialogControllerImpl::LegalDocumentLinkClicked(
- const ui::Range& range) {
+ const gfx::Range& range) {
for (size_t i = 0; i < legal_document_link_ranges_.size(); ++i) {
if (legal_document_link_ranges_[i] == range) {
OpenTabWithUrl(wallet_items_->legal_documents()[i]->url());
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.h ('k') | chrome/browser/ui/autofill/autofill_dialog_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698