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 file. | 418 // Sends an async IPC to open a 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 virtual bool AsyncOpenFileSystemURL( | 424 virtual bool AsyncOpenFileSystemURL( |
432 const GURL& path, | 425 const GURL& path, |
433 int flags, | 426 int flags, |
434 const AsyncOpenFileCallback& callback) = 0; | 427 const AsyncOpenFileCallback& callback) = 0; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 650 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
658 | 651 |
659 // Returns a Device ID | 652 // Returns a Device ID |
660 virtual std::string GetDeviceID() = 0; | 653 virtual std::string GetDeviceID() = 0; |
661 }; | 654 }; |
662 | 655 |
663 } // namespace ppapi | 656 } // namespace ppapi |
664 } // namespace webkit | 657 } // namespace webkit |
665 | 658 |
666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 659 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |