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

Side by Side Diff: Source/core/html/PasswordInputType.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/PasswordInputType.h ('k') | Source/core/html/RadioInputType.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/PasswordInputType.h ('k') | Source/core/html/RadioInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698