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

Side by Side Diff: Source/web/WebInputElement.cpp

Issue 234803004: Wrap isActivatedSubmit() in WebFormControlElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove IsActivatedsumbit() in webInputElement Created 6 years, 8 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/web/WebFormControlElement.cpp ('k') | public/web/WebFormControlElement.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool WebInputElement::isCheckbox() const 75 bool WebInputElement::isCheckbox() const
76 { 76 {
77 return constUnwrap<HTMLInputElement>()->isCheckbox(); 77 return constUnwrap<HTMLInputElement>()->isCheckbox();
78 } 78 }
79 79
80 int WebInputElement::maxLength() const 80 int WebInputElement::maxLength() const
81 { 81 {
82 return constUnwrap<HTMLInputElement>()->maxLength(); 82 return constUnwrap<HTMLInputElement>()->maxLength();
83 } 83 }
84 84
85 bool WebInputElement::isActivatedSubmit() const
86 {
87 return constUnwrap<HTMLInputElement>()->isActivatedSubmit();
88 }
89
90 void WebInputElement::setActivatedSubmit(bool activated) 85 void WebInputElement::setActivatedSubmit(bool activated)
91 { 86 {
92 unwrap<HTMLInputElement>()->setActivatedSubmit(activated); 87 unwrap<HTMLInputElement>()->setActivatedSubmit(activated);
93 } 88 }
94 89
95 int WebInputElement::size() const 90 int WebInputElement::size() const
96 { 91 {
97 return constUnwrap<HTMLInputElement>()->size(); 92 return constUnwrap<HTMLInputElement>()->size();
98 } 93 }
99 94
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 209 }
215 210
216 WebInputElement* toWebInputElement(WebElement* webElement) 211 WebInputElement* toWebInputElement(WebElement* webElement)
217 { 212 {
218 if (!isHTMLInputElement(*webElement->unwrap<Element>())) 213 if (!isHTMLInputElement(*webElement->unwrap<Element>()))
219 return 0; 214 return 0;
220 215
221 return static_cast<WebInputElement*>(webElement); 216 return static_cast<WebInputElement*>(webElement);
222 } 217 }
223 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebFormControlElement.cpp ('k') | public/web/WebFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698