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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 { | 74 { |
75 // Should never save/restore password fields. | 75 // Should never save/restore password fields. |
76 ASSERT_NOT_REACHED(); | 76 ASSERT_NOT_REACHED(); |
77 } | 77 } |
78 | 78 |
79 bool PasswordInputType::shouldRespectListAttribute() | 79 bool PasswordInputType::shouldRespectListAttribute() |
80 { | 80 { |
81 return false; | 81 return false; |
82 } | 82 } |
83 | 83 |
84 bool PasswordInputType::shouldRespectSpeechAttribute() | |
85 { | |
86 return true; | |
87 } | |
88 | |
89 void PasswordInputType::enableSecureTextInput() | 84 void PasswordInputType::enableSecureTextInput() |
90 { | 85 { |
91 if (element().document().frame()) | 86 if (element().document().frame()) |
92 element().document().setUseSecureKeyboardEntryWhenActive(true); | 87 element().document().setUseSecureKeyboardEntryWhenActive(true); |
93 } | 88 } |
94 | 89 |
95 void PasswordInputType::disableSecureTextInput() | 90 void PasswordInputType::disableSecureTextInput() |
96 { | 91 { |
97 if (element().document().frame()) | 92 if (element().document().frame()) |
98 element().document().setUseSecureKeyboardEntryWhenActive(false); | 93 element().document().setUseSecureKeyboardEntryWhenActive(false); |
99 } | 94 } |
100 | 95 |
101 } // namespace blink | 96 } // namespace blink |
OLD | NEW |