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

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

Issue 132103002: Update HTML forms classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/forms/EmailInputType.h ('k') | Source/core/html/forms/HiddenInputType.h » ('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 23 matching lines...) Expand all
34 34
35 #include "core/html/forms/BaseClickableWithKeyInputType.h" 35 #include "core/html/forms/BaseClickableWithKeyInputType.h"
36 #include "platform/FileChooser.h" 36 #include "platform/FileChooser.h"
37 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 class DragData; 41 class DragData;
42 class FileList; 42 class FileList;
43 43
44 class FileInputType : public BaseClickableWithKeyInputType, private FileChooserC lient { 44 class FileInputType FINAL : public BaseClickableWithKeyInputType, private FileCh ooserClient {
45 public: 45 public:
46 static PassRefPtr<InputType> create(HTMLInputElement&); 46 static PassRefPtr<InputType> create(HTMLInputElement&);
47 static Vector<FileChooserFileInfo> filesFromFormControlState(const FormContr olState&); 47 static Vector<FileChooserFileInfo> filesFromFormControlState(const FormContr olState&);
48 48
49 private: 49 private:
50 FileInputType(HTMLInputElement&); 50 FileInputType(HTMLInputElement&);
51 virtual const AtomicString& formControlType() const OVERRIDE; 51 virtual const AtomicString& formControlType() const OVERRIDE;
52 virtual FormControlState saveFormControlState() const OVERRIDE; 52 virtual FormControlState saveFormControlState() const OVERRIDE;
53 virtual void restoreFormControlState(const FormControlState&) OVERRIDE; 53 virtual void restoreFormControlState(const FormControlState&) OVERRIDE;
54 virtual bool appendFormData(FormDataList&, bool) const OVERRIDE; 54 virtual bool appendFormData(FormDataList&, bool) const OVERRIDE;
(...skipping 22 matching lines...) Expand all
77 void receiveDropForDirectoryUpload(const Vector<String>&); 77 void receiveDropForDirectoryUpload(const Vector<String>&);
78 78
79 RefPtr<FileList> m_fileList; 79 RefPtr<FileList> m_fileList;
80 80
81 String m_droppedFileSystemId; 81 String m_droppedFileSystemId;
82 }; 82 };
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // FileInputType_h 86 #endif // FileInputType_h
OLDNEW
« no previous file with comments | « Source/core/html/forms/EmailInputType.h ('k') | Source/core/html/forms/HiddenInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698