OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/glue/plugins/pepper_file_chooser.h" | 5 #include "webkit/glue/plugins/pepper_file_chooser.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "third_party/ppapi/c/pp_completion_callback.h" | 11 #include "ppapi/c/pp_completion_callback.h" |
12 #include "third_party/ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
13 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebFileChooserCompletion.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebFileChooserCompletion.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebFileChooserParams.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebFileChooserParams.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
17 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" |
18 #include "webkit/glue/plugins/pepper_file_ref.h" | 18 #include "webkit/glue/plugins/pepper_file_ref.h" |
19 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 19 #include "webkit/glue/plugins/pepper_plugin_delegate.h" |
20 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 20 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
21 #include "webkit/glue/plugins/pepper_resource_tracker.h" | 21 #include "webkit/glue/plugins/pepper_resource_tracker.h" |
22 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 | 146 |
147 scoped_refptr<FileRef> FileChooser::GetNextChosenFile() { | 147 scoped_refptr<FileRef> FileChooser::GetNextChosenFile() { |
148 if (next_chosen_file_index_ >= chosen_files_.size()) | 148 if (next_chosen_file_index_ >= chosen_files_.size()) |
149 return NULL; | 149 return NULL; |
150 | 150 |
151 return chosen_files_[next_chosen_file_index_++]; | 151 return chosen_files_[next_chosen_file_index_++]; |
152 } | 152 } |
153 | 153 |
154 } // namespace pepper | 154 } // namespace pepper |
OLD | NEW |