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

Side by Side Diff: Source/core/html/forms/FileInputType.h

Issue 267713006: node.cloneNode() should clone the value of file upload elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 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
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/forms/FileInputType.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void handleDOMActivateEvent(Event*) OVERRIDE; 58 virtual void handleDOMActivateEvent(Event*) OVERRIDE;
59 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE; 59 virtual RenderObject* createRenderer(RenderStyle*) const OVERRIDE;
60 virtual bool canSetStringValue() const OVERRIDE; 60 virtual bool canSetStringValue() const OVERRIDE;
61 virtual FileList* files() OVERRIDE; 61 virtual FileList* files() OVERRIDE;
62 virtual void setFiles(PassRefPtrWillBeRawPtr<FileList>) OVERRIDE; 62 virtual void setFiles(PassRefPtrWillBeRawPtr<FileList>) OVERRIDE;
63 virtual bool canSetValue(const String&) OVERRIDE; 63 virtual bool canSetValue(const String&) OVERRIDE;
64 virtual bool getTypeSpecificValue(String&) OVERRIDE; // Checked first, befor e internal storage or the value attribute. 64 virtual bool getTypeSpecificValue(String&) OVERRIDE; // Checked first, befor e internal storage or the value attribute.
65 virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavi or) OVERRIDE; 65 virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavi or) OVERRIDE;
66 virtual bool receiveDroppedFiles(const DragData*) OVERRIDE; 66 virtual bool receiveDroppedFiles(const DragData*) OVERRIDE;
67 virtual String droppedFileSystemId() OVERRIDE; 67 virtual String droppedFileSystemId() OVERRIDE;
68 virtual void copyNonAttributeProperties(const HTMLInputElement&) OVERRIDE;
68 virtual bool isFileUpload() const OVERRIDE; 69 virtual bool isFileUpload() const OVERRIDE;
69 virtual void createShadowSubtree() OVERRIDE; 70 virtual void createShadowSubtree() OVERRIDE;
70 virtual void disabledAttributeChanged() OVERRIDE; 71 virtual void disabledAttributeChanged() OVERRIDE;
71 virtual void multipleAttributeChanged() OVERRIDE; 72 virtual void multipleAttributeChanged() OVERRIDE;
72 virtual String defaultToolTip() const OVERRIDE; 73 virtual String defaultToolTip() const OVERRIDE;
73 74
74 // FileChooserClient implementation. 75 // FileChooserClient implementation.
75 virtual void filesChosen(const Vector<FileChooserFileInfo>&) OVERRIDE; 76 virtual void filesChosen(const Vector<FileChooserFileInfo>&) OVERRIDE;
76 77
77 PassRefPtrWillBeRawPtr<FileList> createFileList(const Vector<FileChooserFile Info>& files) const; 78 PassRefPtrWillBeRawPtr<FileList> createFileList(const Vector<FileChooserFile Info>& files) const;
78 void receiveDropForDirectoryUpload(const Vector<String>&); 79 void receiveDropForDirectoryUpload(const Vector<String>&);
79 80
80 RefPtrWillBePersistent<FileList> m_fileList; 81 RefPtrWillBePersistent<FileList> m_fileList;
81 82
82 String m_droppedFileSystemId; 83 String m_droppedFileSystemId;
83 }; 84 };
84 85
85 } // namespace WebCore 86 } // namespace WebCore
86 87
87 #endif // FileInputType_h 88 #endif // FileInputType_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698