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

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

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Do not propagate String(capture) outside Blink Created 3 years, 7 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 d990ffc8738cca464c55500e2c3bf32b3ad9b8f4..07ff516abc5fcad9e43f6428bd90c12195e6654a 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();
}
+CaptureFacingMode HTMLInputElement::capture() const {
+ const String capture = FastGetAttribute(captureAttr).LowerASCII();
+ if (capture == "user")
+ return CaptureFacingModeUser;
+
+ // |capture| is equivalent to 'environment' if unspecified.
+ return CaptureFacingModeEnvironment;
+}
+
+void HTMLInputElement::setCapture(const AtomicString& value) {
+ setAttribute(captureAttr, value);
+}
+
bool HTMLInputElement::IsInRequiredRadioButtonGroup() {
// TODO(tkent): Remove type check.
DCHECK_EQ(type(), InputTypeNames::radio);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.h ('k') | third_party/WebKit/Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698