OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 bool isDirectory; | 59 bool isDirectory; |
60 | 60 |
61 SelectedFileInfo() | 61 SelectedFileInfo() |
62 : modificationTime(0) | 62 : modificationTime(0) |
63 , length(0) | 63 , length(0) |
64 , isDirectory(false) | 64 , isDirectory(false) |
65 { | 65 { |
66 } | 66 } |
67 }; | 67 }; |
68 | 68 |
69 // Called with zero or more file names. Zero-length vector means that | 69 // Called with zero or more file names. Zero-lengthed vector means that |
70 // the user cancelled or that file choosing failed. The callback instance | 70 // the user cancelled or that file choosing failed. The callback instance |
71 // is destroyed when this method is called. | 71 // is destroyed when this method is called. |
72 virtual void didChooseFile(const WebVector<WebString>& fileNames) = 0; | 72 virtual void didChooseFile(const WebVector<WebString>& fileNames) = 0; |
73 | 73 |
74 // Called with zero or more files, given as a vector of SelectedFileInfo. | 74 // Called with zero or more files, given as a vector of SelectedFileInfo. |
75 // Zero-length vector means that the user cancelled or that file | 75 // Zero-lengthed vector means that the user cancelled or that file |
76 // choosing failed. The callback instance is destroyed when this method | 76 // choosing failed. The callback instance is destroyed when this method |
77 // is called. | 77 // is called. |
78 // FIXME: Deprecate either one of the didChooseFile (and rename it to | 78 // FIXME: Deprecate either one of the didChooseFile (and rename it to |
79 // didChooseFile*s*). | 79 // didChooseFile*s*). |
80 virtual void didChooseFile(const WebVector<SelectedFileInfo>&) { } | 80 virtual void didChooseFile(const WebVector<SelectedFileInfo>&) { } |
81 protected: | 81 protected: |
82 virtual ~WebFileChooserCompletion() {} | 82 virtual ~WebFileChooserCompletion() {} |
83 }; | 83 }; |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif | 87 #endif |
OLD | NEW |