| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GLUE_WEBVIEW_H_ | 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_ |
| 6 #define WEBKIT_GLUE_WEBVIEW_H_ | 6 #define WEBKIT_GLUE_WEBVIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "webkit/api/public/WebDragOperation.h" | 12 #include "webkit/api/public/WebDragOperation.h" |
| 13 #include "webkit/api/public/WebView.h" | 13 #include "webkit/api/public/WebView.h" |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebDragData; | 16 class WebDragData; |
| 17 class WebFrameClient; | 17 class WebFrameClient; |
| 18 class WebFrame; | 18 class WebFrame; |
| 19 class WebSettings; | 19 class WebSettings; |
| 20 struct WebPoint; | 20 struct WebPoint; |
| 21 } | 21 } |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 class WebDevToolsAgent; | 24 class WebDevToolsAgent; |
| 25 class WebViewDelegate; | 25 class WebViewDelegate; |
| 26 struct MediaPlayerAction; | |
| 27 | 26 |
| 28 // | 27 // |
| 29 // @class WebView | 28 // @class WebView |
| 30 // WebView manages the interaction between WebFrameViews and WebDataSources. | 29 // WebView manages the interaction between WebFrameViews and WebDataSources. |
| 31 // Modification of the policies and behavior of the WebKit is largely managed | 30 // Modification of the policies and behavior of the WebKit is largely managed |
| 32 // by WebViews and their delegates. | 31 // by WebViews and their delegates. |
| 33 // | 32 // |
| 34 // Typical usage: | 33 // Typical usage: |
| 35 // | 34 // |
| 36 // WebView *webView; | 35 // WebView *webView; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 int64 node_id, | 73 int64 node_id, |
| 75 const std::vector<std::wstring>& suggestions, | 74 const std::vector<std::wstring>& suggestions, |
| 76 int default_suggestion_index) = 0; | 75 int default_suggestion_index) = 0; |
| 77 | 76 |
| 78 // Hides the autofill popup if any are showing. | 77 // Hides the autofill popup if any are showing. |
| 79 virtual void HideAutofillPopup() = 0; | 78 virtual void HideAutofillPopup() = 0; |
| 80 | 79 |
| 81 // Returns development tools agent instance belonging to this view. | 80 // Returns development tools agent instance belonging to this view. |
| 82 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; | 81 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; |
| 83 | 82 |
| 84 // Performs an action from a context menu for the node at the given | |
| 85 // location. | |
| 86 virtual void MediaPlayerActionAt(int x, | |
| 87 int y, | |
| 88 const MediaPlayerAction& action) = 0; | |
| 89 | |
| 90 private: | 83 private: |
| 91 DISALLOW_COPY_AND_ASSIGN(WebView); | 84 DISALLOW_COPY_AND_ASSIGN(WebView); |
| 92 }; | 85 }; |
| 93 | 86 |
| 94 #endif // WEBKIT_GLUE_WEBVIEW_H_ | 87 #endif // WEBKIT_GLUE_WEBVIEW_H_ |
| OLD | NEW |