| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/autofill/password_generation_manager.h" | 5 #include "chrome/renderer/autofill/password_generation_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/common/autofill_messages.h" | 8 #include "chrome/common/autofill_messages.h" |
| 9 #include "chrome/common/net/gaia/gaia_urls.h" | |
| 10 #include "chrome/common/password_generation_util.h" | 9 #include "chrome/common/password_generation_util.h" |
| 11 #include "content/public/renderer/render_view.h" | 10 #include "content/public/renderer/render_view.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 11 #include "google_apis/gaia/gaia_urls.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 21 #include "ui/gfx/rect.h" | 21 #include "ui/gfx/rect.h" |
| 22 | 22 |
| 23 namespace autofill { | 23 namespace autofill { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Returns true if we think that this form is for account creation. |passwords| | 27 // Returns true if we think that this form is for account creation. |passwords| |
| 28 // is filled with the password field(s) in the form. | 28 // is filled with the password field(s) in the form. |
| 29 bool GetAccountCreationPasswordFields( | 29 bool GetAccountCreationPasswordFields( |
| 30 const WebKit::WebFormElement& form, | 30 const WebKit::WebFormElement& form, |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 passwords_[0].decorationElementFor(this).setAttribute("style", | 235 passwords_[0].decorationElementFor(this).setAttribute("style", |
| 236 "display:block"); | 236 "display:block"); |
| 237 password_generation::LogPasswordGenerationEvent( | 237 password_generation::LogPasswordGenerationEvent( |
| 238 password_generation::ICON_SHOWN); | 238 password_generation::ICON_SHOWN); |
| 239 return; | 239 return; |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 } | 242 } |
| 243 | 243 |
| 244 } // namespace autofill | 244 } // namespace autofill |
| OLD | NEW |