| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/html/PasswordInputType.h" | 33 #include "core/html/PasswordInputType.h" |
| 34 | 34 |
| 35 #include "core/html/FormController.h" | 35 #include "core/html/FormController.h" |
| 36 #include "core/html/HTMLInputElement.h" | 36 #include "core/html/HTMLInputElement.h" |
| 37 #include "core/html/InputTypeNames.h" | 37 #include "core/html/InputTypeNames.h" |
| 38 #include <wtf/Assertions.h> | 38 #include <wtf/Assertions.h> |
| 39 #include <wtf/PassOwnPtr.h> | 39 #include <wtf/PassOwnPtr.h> |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 PassOwnPtr<InputType> PasswordInputType::create(HTMLInputElement* element) | 43 PassOwnPtr<InputType> PasswordInputType::create(Handle<HTMLInputElement> element
) |
| 44 { | 44 { |
| 45 return adoptPtr(new PasswordInputType(element)); | 45 return adoptPtr(new PasswordInputType(element)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 const AtomicString& PasswordInputType::formControlType() const | 48 const AtomicString& PasswordInputType::formControlType() const |
| 49 { | 49 { |
| 50 return InputTypeNames::password(); | 50 return InputTypeNames::password(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool PasswordInputType::shouldSaveAndRestoreFormControlState() const | 53 bool PasswordInputType::shouldSaveAndRestoreFormControlState() const |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 void PasswordInputType::handleBlurEvent() | 105 void PasswordInputType::handleBlurEvent() |
| 106 { | 106 { |
| 107 if (element()->document()->frame()) | 107 if (element()->document()->frame()) |
| 108 element()->document()->setUseSecureKeyboardEntryWhenActive(false); | 108 element()->document()->setUseSecureKeyboardEntryWhenActive(false); |
| 109 BaseTextInputType::handleBlurEvent(); | 109 BaseTextInputType::handleBlurEvent(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace WebCore | 112 } // namespace WebCore |
| OLD | NEW |