OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 class ResourceCreationAPI; | 66 class ResourceCreationAPI; |
67 } | 67 } |
68 | 68 |
69 } // namespace ppapi | 69 } // namespace ppapi |
70 | 70 |
71 namespace skia { | 71 namespace skia { |
72 class PlatformCanvas; | 72 class PlatformCanvas; |
73 } | 73 } |
74 | 74 |
75 namespace WebKit { | 75 namespace WebKit { |
76 class WebFileChooserCompletion; | |
77 class WebGamepads; | 76 class WebGamepads; |
78 class WebPlugin; | 77 class WebPlugin; |
79 struct WebCompositionUnderline; | 78 struct WebCompositionUnderline; |
80 struct WebCursorInfo; | 79 struct WebCursorInfo; |
81 struct WebFileChooserParams; | |
82 } | 80 } |
83 | 81 |
84 namespace webkit_glue { | 82 namespace webkit_glue { |
85 class ClipboardClient; | 83 class ClipboardClient; |
86 class P2PTransport; | 84 class P2PTransport; |
87 class NetworkListObserver; | 85 class NetworkListObserver; |
88 } // namespace webkit_glue | 86 } // namespace webkit_glue |
89 | 87 |
90 namespace webkit { | 88 namespace webkit { |
91 namespace ppapi { | 89 namespace ppapi { |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 virtual Broker* ConnectToBroker(webkit::ppapi::PPB_Broker_Impl* client) = 0; | 408 virtual Broker* ConnectToBroker(webkit::ppapi::PPB_Broker_Impl* client) = 0; |
411 | 409 |
412 // Notifies that the number of find results has changed. | 410 // Notifies that the number of find results has changed. |
413 virtual void NumberOfFindResultsChanged(int identifier, | 411 virtual void NumberOfFindResultsChanged(int identifier, |
414 int total, | 412 int total, |
415 bool final_result) = 0; | 413 bool final_result) = 0; |
416 | 414 |
417 // Notifies that the index of the currently selected item has been updated. | 415 // Notifies that the index of the currently selected item has been updated. |
418 virtual void SelectedFindResultChanged(int identifier, int index) = 0; | 416 virtual void SelectedFindResultChanged(int identifier, int index) = 0; |
419 | 417 |
420 // Runs a file chooser. | |
421 virtual bool RunFileChooser( | |
422 const WebKit::WebFileChooserParams& params, | |
423 WebKit::WebFileChooserCompletion* chooser_completion) = 0; | |
424 | |
425 // Sends an async IPC to open a local file. | 418 // Sends an async IPC to open a local file. |
426 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> | 419 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> |
427 AsyncOpenFileCallback; | 420 AsyncOpenFileCallback; |
428 virtual bool AsyncOpenFile(const FilePath& path, | 421 virtual bool AsyncOpenFile(const FilePath& path, |
429 int flags, | 422 int flags, |
430 const AsyncOpenFileCallback& callback) = 0; | 423 const AsyncOpenFileCallback& callback) = 0; |
431 | 424 |
432 // Sends an async IPC to open a file through filesystem API. | 425 // Sends an async IPC to open a file through filesystem API. |
433 // When a file is successfully opened, |callback| is invoked with | 426 // When a file is successfully opened, |callback| is invoked with |
434 // PLATFORM_FILE_OK, the opened file handle, and a callback function for | 427 // PLATFORM_FILE_OK, the opened file handle, and a callback function for |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 663 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
671 | 664 |
672 // Returns a Device ID | 665 // Returns a Device ID |
673 virtual std::string GetDeviceID() = 0; | 666 virtual std::string GetDeviceID() = 0; |
674 }; | 667 }; |
675 | 668 |
676 } // namespace ppapi | 669 } // namespace ppapi |
677 } // namespace webkit | 670 } // namespace webkit |
678 | 671 |
679 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 672 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |