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

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

Issue 2378503002: Observe visibility of password inputs, for HTTP-bad phase 1 (Closed)
Patch Set: fix components_unittests build failure Created 4 years, 3 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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.h b/third_party/WebKit/Source/core/html/HTMLInputElement.h
index a5633c857e556c87c7ba9ec9e72e73f82cc689ae..245253c23d2913808c72f3671a5c607f53f7d280 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.h
@@ -34,6 +34,7 @@ namespace blink {
class AXObject;
class DragData;
+class ElementVisibilityObserver;
class ExceptionState;
class FileList;
class HTMLDataListElement;
@@ -373,6 +374,9 @@ private:
bool shouldDispatchFormControlChangeEvent(String&, String&) override;
+ void updateVisibilityObserver(const AtomicString& newTypeName);
+ void onVisibilityChangedForPasswordInput(bool isVisible);
+
AtomicString m_name;
String m_valueIfDirty;
String m_suggestedValue;
@@ -401,6 +405,7 @@ private:
// the ImageInput object we may delete the loader while this element lives on.
Member<HTMLImageLoader> m_imageLoader;
Member<ListAttributeTargetObserver> m_listAttributeTargetObserver;
+ Member<ElementVisibilityObserver> m_passwordVisibilityObserver;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698