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

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

Issue 1420693006: Introduce a struct to store arguments of Element::focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 String selectionDirectionForBinding(ExceptionState&) const; 143 String selectionDirectionForBinding(ExceptionState&) const;
144 void setSelectionStartForBinding(int, ExceptionState&); 144 void setSelectionStartForBinding(int, ExceptionState&);
145 void setSelectionEndForBinding(int, ExceptionState&); 145 void setSelectionEndForBinding(int, ExceptionState&);
146 void setSelectionDirectionForBinding(const String&, ExceptionState&); 146 void setSelectionDirectionForBinding(const String&, ExceptionState&);
147 void setSelectionRangeForBinding(int start, int end, ExceptionState&); 147 void setSelectionRangeForBinding(int start, int end, ExceptionState&);
148 void setSelectionRangeForBinding(int start, int end, const String& direction , ExceptionState&); 148 void setSelectionRangeForBinding(int start, int end, const String& direction , ExceptionState&);
149 149
150 bool layoutObjectIsNeeded(const ComputedStyle&) final; 150 bool layoutObjectIsNeeded(const ComputedStyle&) final;
151 LayoutObject* createLayoutObject(const ComputedStyle&) override; 151 LayoutObject* createLayoutObject(const ComputedStyle&) override;
152 void detach(const AttachContext& = AttachContext()) final; 152 void detach(const AttachContext& = AttachContext()) final;
153 void updateFocusAppearance(bool restorePreviousSelection) final; 153 void updateFocusAppearance(SelectionBehaviorOnFocus) final;
154 154
155 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making 155 // FIXME: For isActivatedSubmit and setActivatedSubmit, we should use the NV I-idiom here by making
156 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call 156 // it private virtual in all classes and expose a public method in HTMLFormC ontrolElement to call
157 // the private virtual method. 157 // the private virtual method.
158 bool isActivatedSubmit() const final; 158 bool isActivatedSubmit() const final;
159 void setActivatedSubmit(bool flag) final; 159 void setActivatedSubmit(bool flag) final;
160 160
161 String altText() const final; 161 String altText() const final;
162 162
163 int maxResults() const { return m_maxResults; } 163 int maxResults() const { return m_maxResults; }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // The ImageLoader must be owned by this element because the loader code ass umes 394 // The ImageLoader must be owned by this element because the loader code ass umes
395 // that it lives as long as its owning element lives. If we move the loader into 395 // that it lives as long as its owning element lives. If we move the loader into
396 // the ImageInput object we may delete the loader while this element lives o n. 396 // the ImageInput object we may delete the loader while this element lives o n.
397 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 397 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
398 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 398 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
399 }; 399 };
400 400
401 } // namespace blink 401 } // namespace blink
402 402
403 #endif // HTMLInputElement_h 403 #endif // HTMLInputElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAreaElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698