OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |