| 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/WebWidget.h" | 13 #include "webkit/api/public/WebWidget.h" |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 class WebDragData; | 16 class WebDragData; |
| 17 class WebEditingClient; | 17 class WebEditingClient; |
| 18 class WebFrameClient; |
| 18 class WebFrame; | 19 class WebFrame; |
| 19 class WebSettings; | 20 class WebSettings; |
| 20 struct WebPoint; | 21 struct WebPoint; |
| 21 } | 22 } |
| 22 | 23 |
| 23 class GURL; | 24 class GURL; |
| 24 class WebDevToolsAgent; | 25 class WebDevToolsAgent; |
| 25 class WebViewDelegate; | 26 class WebViewDelegate; |
| 26 struct MediaPlayerAction; | 27 struct MediaPlayerAction; |
| 27 | 28 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 50 WebView() {} | 51 WebView() {} |
| 51 virtual ~WebView() {} | 52 virtual ~WebView() {} |
| 52 | 53 |
| 53 // This method creates a WebView that is NOT yet initialized. You will need | 54 // This method creates a WebView that is NOT yet initialized. You will need |
| 54 // to call InitializeMainFrame to finish the initialization. You may pass | 55 // to call InitializeMainFrame to finish the initialization. You may pass |
| 55 // NULL for the editing_client parameter if you are not interested in those | 56 // NULL for the editing_client parameter if you are not interested in those |
| 56 // notifications. | 57 // notifications. |
| 57 static WebView* Create( | 58 static WebView* Create( |
| 58 WebViewDelegate* delegate, WebKit::WebEditingClient* editing_client); | 59 WebViewDelegate* delegate, WebKit::WebEditingClient* editing_client); |
| 59 | 60 |
| 60 // After creating a WebView, you should immediately call this function. | 61 // After creating a WebView, you should immediately call this function. You |
| 61 // You can optionally modify the settings (via GetSettings()) in between. | 62 // can optionally modify the settings (via GetSettings()) in between. The |
| 62 virtual void InitializeMainFrame() = 0; | 63 // frame_client will receive events for the main frame and any child frames. |
| 64 virtual void InitializeMainFrame(WebKit::WebFrameClient* frame_client) = 0; |
| 63 | 65 |
| 64 // Tells all Page instances of this view to update the visited link state for | 66 // Tells all Page instances of this view to update the visited link state for |
| 65 // the specified hash. | 67 // the specified hash. |
| 66 static void UpdateVisitedLinkState(uint64 link_hash); | 68 static void UpdateVisitedLinkState(uint64 link_hash); |
| 67 | 69 |
| 68 // Tells all Page instances of this view to update visited state for all their | 70 // Tells all Page instances of this view to update visited state for all their |
| 69 // links. | 71 // links. |
| 70 static void ResetVisitedLinkState(); | 72 static void ResetVisitedLinkState(); |
| 71 | 73 |
| 72 // Returns the delegate for this WebView. This is the pointer that was | 74 // Returns the delegate for this WebView. This is the pointer that was |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 259 |
| 258 #if defined(OS_LINUX) | 260 #if defined(OS_LINUX) |
| 259 virtual void SetThemeFocusRingColor(int r, int g, int b) = 0; | 261 virtual void SetThemeFocusRingColor(int r, int g, int b) = 0; |
| 260 #endif | 262 #endif |
| 261 | 263 |
| 262 private: | 264 private: |
| 263 DISALLOW_COPY_AND_ASSIGN(WebView); | 265 DISALLOW_COPY_AND_ASSIGN(WebView); |
| 264 }; | 266 }; |
| 265 | 267 |
| 266 #endif // WEBKIT_GLUE_WEBVIEW_H_ | 268 #endif // WEBKIT_GLUE_WEBVIEW_H_ |
| OLD | NEW |