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

Side by Side Diff: chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/autofill/password_generation_popup_controller_impl.h " 5 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h "
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 view_ = NULL; 210 view_ = NULL;
211 211
212 Hide(); 212 Hide();
213 } 213 }
214 214
215 void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() { 215 void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() {
216 Browser* browser = 216 Browser* browser =
217 chrome::FindBrowserWithWebContents(controller_common_.web_contents()); 217 chrome::FindBrowserWithWebContents(controller_common_.web_contents());
218 content::OpenURLParams params( 218 content::OpenURLParams params(
219 GURL(chrome::kPasswordManagerAccountDashboardURL), content::Referrer(), 219 GURL(chrome::kPasswordManagerAccountDashboardURL), content::Referrer(),
220 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); 220 NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK, false);
221 browser->OpenURL(params); 221 browser->OpenURL(params);
222 } 222 }
223 223
224 void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint( 224 void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint(
225 const gfx::Point& point) { 225 const gfx::Point& point) {
226 PasswordSelected(view_->IsPointInPasswordBounds(point)); 226 PasswordSelected(view_->IsPointInPasswordBounds(point));
227 } 227 }
228 228
229 bool PasswordGenerationPopupControllerImpl::AcceptSelectedLine() { 229 bool PasswordGenerationPopupControllerImpl::AcceptSelectedLine() {
230 if (!password_selected_) 230 if (!password_selected_)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() { 265 const base::string16& PasswordGenerationPopupControllerImpl::HelpText() {
266 return help_text_; 266 return help_text_;
267 } 267 }
268 268
269 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() { 269 const gfx::Range& PasswordGenerationPopupControllerImpl::HelpTextLinkRange() {
270 return link_range_; 270 return link_range_;
271 } 271 }
272 272
273 } // namespace autofill 273 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698