| 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/WebWidget.h" | 12 #include "webkit/api/public/WebWidget.h" |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace WebKit { |
| 15 class WebDragData; | 15 class WebDragData; |
| 16 class WebFrame; |
| 16 class WebSettings; | 17 class WebSettings; |
| 17 struct WebPoint; | 18 struct WebPoint; |
| 18 } | 19 } |
| 19 | 20 |
| 20 struct MediaPlayerAction; | 21 struct MediaPlayerAction; |
| 21 struct WebPreferences; | 22 struct WebPreferences; |
| 22 class GURL; | 23 class GURL; |
| 23 class WebDevToolsAgent; | 24 class WebDevToolsAgent; |
| 24 class WebFrame; | |
| 25 class WebViewDelegate; | 25 class WebViewDelegate; |
| 26 | 26 |
| 27 // | 27 // |
| 28 // @class WebView | 28 // @class WebView |
| 29 // WebView manages the interaction between WebFrameViews and WebDataSources. | 29 // WebView manages the interaction between WebFrameViews and WebDataSources. |
| 30 // 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 |
| 31 // by WebViews and their delegates. | 31 // by WebViews and their delegates. |
| 32 // | 32 // |
| 33 // Typical usage: | 33 // Typical usage: |
| 34 // | 34 // |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // WebWidget::Close now. | 92 // WebWidget::Close now. |
| 93 virtual void ClosePage() = 0; | 93 virtual void ClosePage() = 0; |
| 94 | 94 |
| 95 // | 95 // |
| 96 // @method mainFrame | 96 // @method mainFrame |
| 97 // @abstract Return the top level frame. | 97 // @abstract Return the top level frame. |
| 98 // @discussion Note that even document that are not framesets will have a | 98 // @discussion Note that even document that are not framesets will have a |
| 99 // mainFrame. | 99 // mainFrame. |
| 100 // @result The main frame. | 100 // @result The main frame. |
| 101 // - (WebFrame *)mainFrame; | 101 // - (WebFrame *)mainFrame; |
| 102 virtual WebFrame* GetMainFrame() = 0; | 102 virtual WebKit::WebFrame* GetMainFrame() = 0; |
| 103 | 103 |
| 104 // Returns the currently focused frame. | 104 // Returns the currently focused frame. |
| 105 virtual WebFrame* GetFocusedFrame() = 0; | 105 virtual WebKit::WebFrame* GetFocusedFrame() = 0; |
| 106 | 106 |
| 107 // Sets focus to the frame passed in. | 107 // Sets focus to the frame passed in. |
| 108 virtual void SetFocusedFrame(WebFrame* frame) = 0; | 108 virtual void SetFocusedFrame(WebKit::WebFrame* frame) = 0; |
| 109 | 109 |
| 110 // Returns the frame with the given name, or NULL if not found. | 110 // Returns the frame with the given name, or NULL if not found. |
| 111 virtual WebFrame* GetFrameWithName(const std::wstring& name) = 0; | 111 virtual WebKit::WebFrame* GetFrameWithName(const std::wstring& name) = 0; |
| 112 | 112 |
| 113 // Returns the frame previous to the specified frame, by traversing the frame | 113 // Returns the frame previous to the specified frame, by traversing the frame |
| 114 // tree, wrapping around if necessary. | 114 // tree, wrapping around if necessary. |
| 115 virtual WebFrame* GetPreviousFrameBefore(WebFrame* frame, bool wrap) = 0; | 115 virtual WebKit::WebFrame* GetPreviousFrameBefore(WebKit::WebFrame* frame, bool
wrap) = 0; |
| 116 | 116 |
| 117 // Returns the frame after to the specified frame, by traversing the frame | 117 // Returns the frame after to the specified frame, by traversing the frame |
| 118 // tree, wrapping around if necessary. | 118 // tree, wrapping around if necessary. |
| 119 virtual WebFrame* GetNextFrameAfter(WebFrame* frame, bool wrap) = 0; | 119 virtual WebKit::WebFrame* GetNextFrameAfter(WebKit::WebFrame* frame, bool wrap
) = 0; |
| 120 | 120 |
| 121 // ---- TODO(darin): remove from here ---- | 121 // ---- TODO(darin): remove from here ---- |
| 122 | 122 |
| 123 // | 123 // |
| 124 // - (IBAction)stopLoading:(id)sender; | 124 // - (IBAction)stopLoading:(id)sender; |
| 125 virtual void StopLoading() = 0; | 125 virtual void StopLoading() = 0; |
| 126 | 126 |
| 127 // Sets the maximum size to allow WebCore's internal B/F list to grow to. | 127 // Sets the maximum size to allow WebCore's internal B/F list to grow to. |
| 128 // If not called, the list will have the default capacity specified in | 128 // If not called, the list will have the default capacity specified in |
| 129 // BackForwardList.cpp. | 129 // BackForwardList.cpp. |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 virtual void SetActive(bool active) = 0; | 257 virtual void SetActive(bool active) = 0; |
| 258 | 258 |
| 259 // Gets the WebView's active state (i.e., state of control tints). | 259 // Gets the WebView's active state (i.e., state of control tints). |
| 260 virtual bool IsActive() = 0; | 260 virtual bool IsActive() = 0; |
| 261 | 261 |
| 262 private: | 262 private: |
| 263 DISALLOW_COPY_AND_ASSIGN(WebView); | 263 DISALLOW_COPY_AND_ASSIGN(WebView); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 #endif // WEBKIT_GLUE_WEBVIEW_H_ | 266 #endif // WEBKIT_GLUE_WEBVIEW_H_ |
| OLD | NEW |