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

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

Issue 926113005: Remove InputType::shouldRespectSpeechAttribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/html/forms/PasswordInputType.h ('k') | Source/core/html/forms/SearchInputType.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/html/forms/PasswordInputType.h ('k') | Source/core/html/forms/SearchInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698