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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Fix comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index 77db91671a0e37d0448b181acc33ffafcfd20927..bdffa0fb98c5b834ce84fd07c437d9f0f3f3e502 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -1681,6 +1681,19 @@ bool HTMLInputElement::ShouldAppearIndeterminate() const {
return input_type_->ShouldAppearIndeterminate();
}
+String HTMLInputElement::capture() const {
+ const String capture = FastGetAttribute(captureAttr).LowerASCII();
+ if (capture == "user")
+ return capture;
+
+ // |capture| is equivalent to 'environment' if unspecified.
+ return "environment";
+}
+
+void HTMLInputElement::setCapture(const AtomicString& value) {
+ setAttribute(captureAttr, value);
+}
+
bool HTMLInputElement::IsInRequiredRadioButtonGroup() {
// TODO(tkent): Remove type check.
DCHECK_EQ(type(), InputTypeNames::radio);

Powered by Google App Engine
This is Rietveld 408576698