OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 RefPtr<FileChooser> m_chooser; | 87 RefPtr<FileChooser> m_chooser; |
88 }; | 88 }; |
89 | 89 |
90 class PLATFORM_EXPORT FileChooser : public RefCounted<FileChooser> { | 90 class PLATFORM_EXPORT FileChooser : public RefCounted<FileChooser> { |
91 public: | 91 public: |
92 static PassRefPtr<FileChooser> create(FileChooserClient*, const FileChooserS
ettings&); | 92 static PassRefPtr<FileChooser> create(FileChooserClient*, const FileChooserS
ettings&); |
93 ~FileChooser(); | 93 ~FileChooser(); |
94 | 94 |
95 void disconnectClient() { m_client = 0; } | 95 void disconnectClient() { m_client = 0; } |
96 | 96 |
97 void chooseFiles(const Vector<String>& paths); | |
98 | |
99 // FIXME: We should probably just pass file paths that could be virtual path
s with proper display names rather than passing structs. | 97 // FIXME: We should probably just pass file paths that could be virtual path
s with proper display names rather than passing structs. |
100 void chooseFiles(const Vector<FileChooserFileInfo>& files); | 98 void chooseFiles(const Vector<FileChooserFileInfo>& files); |
101 | 99 |
102 const FileChooserSettings& settings() const { return m_settings; } | 100 const FileChooserSettings& settings() const { return m_settings; } |
103 | 101 |
104 private: | 102 private: |
105 FileChooser(FileChooserClient*, const FileChooserSettings&); | 103 FileChooser(FileChooserClient*, const FileChooserSettings&); |
106 | 104 |
107 FileChooserClient* m_client; | 105 FileChooserClient* m_client; |
108 FileChooserSettings m_settings; | 106 FileChooserSettings m_settings; |
109 }; | 107 }; |
110 | 108 |
111 } // namespace blink | 109 } // namespace blink |
112 | 110 |
113 #endif // FileChooser_h | 111 #endif // FileChooser_h |
OLD | NEW |