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

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

Issue 1115353002: Update renderer to layoutObject in core/html. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 bool isImage() const; 95 bool isImage() const;
96 96
97 bool checked() const { return m_isChecked; } 97 bool checked() const { return m_isChecked; }
98 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); 98 void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent);
99 void dispatchChangeEventIfNeeded(); 99 void dispatchChangeEventIfNeeded();
100 100
101 // 'indeterminate' is a state independent of the checked state that causes t he control to draw in a way that hides the actual state. 101 // 'indeterminate' is a state independent of the checked state that causes t he control to draw in a way that hides the actual state.
102 bool indeterminate() const { return m_isIndeterminate; } 102 bool indeterminate() const { return m_isIndeterminate; }
103 void setIndeterminate(bool); 103 void setIndeterminate(bool);
104 // shouldAppearChecked is used by the rendering tree/CSS while checked() is used by JS to determine checked state 104 // shouldAppearChecked is used by the layout tree/CSS while checked() is use d by JS to determine checked state
105 bool shouldAppearChecked() const; 105 bool shouldAppearChecked() const;
106 virtual bool shouldAppearIndeterminate() const override; 106 virtual bool shouldAppearIndeterminate() const override;
107 107
108 int size() const; 108 int size() const;
109 bool sizeShouldIncludeDecoration(int& preferredSize) const; 109 bool sizeShouldIncludeDecoration(int& preferredSize) const;
110 110
111 void setType(const AtomicString&); 111 void setType(const AtomicString&);
112 112
113 virtual String value() const override; 113 virtual String value() const override;
114 void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa tchNoEvent); 114 void setValue(const String&, ExceptionState&, TextFieldEventBehavior = Dispa tchNoEvent);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool multiple() const; 181 bool multiple() const;
182 182
183 FileList* files(); 183 FileList* files();
184 void setFiles(FileList*); 184 void setFiles(FileList*);
185 185
186 // Returns true if the given DragData has more than one dropped files. 186 // Returns true if the given DragData has more than one dropped files.
187 bool receiveDroppedFiles(const DragData*); 187 bool receiveDroppedFiles(const DragData*);
188 188
189 String droppedFileSystemId(); 189 String droppedFileSystemId();
190 190
191 // These functions are used for rendering the input active during a 191 // These functions are used for laying out the input active during a
192 // drag-and-drop operation. 192 // drag-and-drop operation.
193 bool canReceiveDroppedFiles() const; 193 bool canReceiveDroppedFiles() const;
194 void setCanReceiveDroppedFiles(bool); 194 void setCanReceiveDroppedFiles(bool);
195 195
196 void onSearch(); 196 void onSearch();
197 197
198 void updateClearButtonVisibility(); 198 void updateClearButtonVisibility();
199 199
200 virtual bool willRespondToMouseClickEvents() override; 200 virtual bool willRespondToMouseClickEvents() override;
201 201
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // The ImageLoader must be owned by this element because the loader code ass umes 389 // The ImageLoader must be owned by this element because the loader code ass umes
390 // that it lives as long as its owning element lives. If we move the loader into 390 // that it lives as long as its owning element lives. If we move the loader into
391 // the ImageInput object we may delete the loader while this element lives o n. 391 // the ImageInput object we may delete the loader while this element lives o n.
392 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 392 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
393 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 393 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
394 }; 394 };
395 395
396 } // namespace blink 396 } // namespace blink
397 397
398 #endif // HTMLInputElement_h 398 #endif // HTMLInputElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698