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

Side by Side Diff: third_party/WebKit/Source/core/html/TextControlElement.h

Issue 2821303005: [selectors4] Use common ancestor strategy for :focus-within (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 public: 57 public:
58 // Common flag for HTMLInputElement::tooLong(), 58 // Common flag for HTMLInputElement::tooLong(),
59 // HTMLTextAreaElement::tooLong(), 59 // HTMLTextAreaElement::tooLong(),
60 // HTMLInputElement::tooShort() and HTMLTextAreaElement::tooShort(). 60 // HTMLInputElement::tooShort() and HTMLTextAreaElement::tooShort().
61 enum NeedsToCheckDirtyFlag { kCheckDirtyFlag, kIgnoreDirtyFlag }; 61 enum NeedsToCheckDirtyFlag { kCheckDirtyFlag, kIgnoreDirtyFlag };
62 62
63 ~TextControlElement() override; 63 ~TextControlElement() override;
64 64
65 void ForwardEvent(Event*); 65 void ForwardEvent(Event*);
66 66
67 void SetFocused(bool, WebFocusType) override; 67 void SetFocused(bool, WebFocusType, Node* common_ancestor = nullptr) override;
68 68
69 // The derived class should return true if placeholder processing is needed. 69 // The derived class should return true if placeholder processing is needed.
70 virtual bool IsPlaceholderVisible() const = 0; 70 virtual bool IsPlaceholderVisible() const = 0;
71 virtual void SetPlaceholderVisibility(bool) = 0; 71 virtual void SetPlaceholderVisibility(bool) = 0;
72 virtual bool SupportsPlaceholder() const = 0; 72 virtual bool SupportsPlaceholder() const = 0;
73 String StrippedPlaceholder() const; 73 String StrippedPlaceholder() const;
74 HTMLElement* PlaceholderElement() const; 74 HTMLElement* PlaceholderElement() const;
75 void UpdatePlaceholderVisibility(); 75 void UpdatePlaceholderVisibility();
76 76
77 VisiblePosition VisiblePositionForIndex(int) const; 77 VisiblePosition VisiblePositionForIndex(int) const;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 211 }
212 212
213 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement); 213 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement);
214 214
215 TextControlElement* EnclosingTextControl(const Position&); 215 TextControlElement* EnclosingTextControl(const Position&);
216 TextControlElement* EnclosingTextControl(const Node*); 216 TextControlElement* EnclosingTextControl(const Node*);
217 217
218 } // namespace blink 218 } // namespace blink
219 219
220 #endif 220 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698