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" |
11 #include "base/strings/utf_string_conversion_utils.h" | 11 #include "base/strings/utf_string_conversion_utils.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/browser/ui/autofill/password_generation_popup_observer.h" | 13 #include "chrome/browser/ui/autofill/password_generation_popup_observer.h" |
14 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" | 14 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" |
15 #include "chrome/browser/ui/autofill/popup_constants.h" | 15 #include "chrome/browser/ui/autofill/popup_constants.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_finder.h" | 17 #include "chrome/browser/ui/browser_finder.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "chrome/grit/chromium_strings.h" |
| 20 #include "chrome/grit/generated_resources.h" |
| 21 #include "chrome/grit/google_chrome_strings.h" |
19 #include "components/autofill/content/common/autofill_messages.h" | 22 #include "components/autofill/content/common/autofill_messages.h" |
20 #include "components/autofill/core/browser/password_generator.h" | 23 #include "components/autofill/core/browser/password_generator.h" |
21 #include "components/password_manager/core/browser/password_manager.h" | 24 #include "components/password_manager/core/browser/password_manager.h" |
22 #include "content/public/browser/native_web_keyboard_event.h" | 25 #include "content/public/browser/native_web_keyboard_event.h" |
23 #include "content/public/browser/render_view_host.h" | 26 #include "content/public/browser/render_view_host.h" |
24 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
25 #include "grit/chromium_strings.h" | |
26 #include "grit/generated_resources.h" | |
27 #include "grit/google_chrome_strings.h" | |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "ui/events/keycodes/keyboard_codes.h" | 29 #include "ui/events/keycodes/keyboard_codes.h" |
30 #include "ui/gfx/rect_conversions.h" | 30 #include "ui/gfx/rect_conversions.h" |
31 #include "ui/gfx/text_utils.h" | 31 #include "ui/gfx/text_utils.h" |
32 | 32 |
33 namespace autofill { | 33 namespace autofill { |
34 | 34 |
35 base::WeakPtr<PasswordGenerationPopupControllerImpl> | 35 base::WeakPtr<PasswordGenerationPopupControllerImpl> |
36 PasswordGenerationPopupControllerImpl::GetOrCreate( | 36 PasswordGenerationPopupControllerImpl::GetOrCreate( |
37 base::WeakPtr<PasswordGenerationPopupControllerImpl> previous, | 37 base::WeakPtr<PasswordGenerationPopupControllerImpl> previous, |
(...skipping 226 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 |