| Index: webkit/api/public/WebView.h
|
| ===================================================================
|
| --- webkit/api/public/WebView.h (revision 27750)
|
| +++ webkit/api/public/WebView.h (working copy)
|
| @@ -37,6 +37,7 @@
|
| namespace WebKit {
|
| class WebDragData;
|
| class WebFrame;
|
| + class WebFrameClient;
|
| class WebSettings;
|
| class WebString;
|
| class WebViewClient;
|
| @@ -44,9 +45,18 @@
|
|
|
| class WebView : public WebWidget {
|
| public:
|
| - WEBKIT_API WebView* create(WebViewClient*);
|
| + // Initialization ------------------------------------------------------
|
|
|
| + // FIXME enable this once WebViewDelegate has been eliminated.
|
| + //WEBKIT_API WebView* create(WebViewClient*);
|
|
|
| + // After creating a WebView, you should immediately call this method.
|
| + // You can optionally modify the settings before calling this method.
|
| + // The WebFrameClient will receive events for the main frame and any
|
| + // child frames.
|
| + virtual void initializeMainFrame(WebFrameClient*) = 0;
|
| +
|
| +
|
| // Options -------------------------------------------------------------
|
|
|
| // The returned pointer is valid for the lifetime of the WebView.
|
| @@ -57,7 +67,26 @@
|
| virtual WebString pageEncoding() const = 0;
|
| virtual void setPageEncoding(const WebString&) = 0;
|
|
|
| + // Makes the WebView transparent. This is useful if you want to have
|
| + // some custom background rendered behind it.
|
| + virtual bool isTransparent() const = 0;
|
| + virtual void setIsTransparent(bool) = 0;
|
|
|
| + // Controls whether pressing Tab key advances focus to links.
|
| + virtual bool tabsToLinks() const = 0;
|
| + virtual void setTabsToLinks(bool) = 0;
|
| +
|
| + // Method that controls whether pressing Tab key cycles through page
|
| + // elements or inserts a '\t' char in the focused text area.
|
| + virtual bool tabKeyCyclesThroughElements() const = 0;
|
| + virtual void setTabKeyCyclesThroughElements(bool) = 0;
|
| +
|
| + // Controls the WebView's active state, which may affect the rendering
|
| + // of elements on the page (i.e., tinting of input elements).
|
| + virtual bool isActive() const = 0;
|
| + virtual void setIsActive(bool) = 0;
|
| +
|
| +
|
| // Closing -------------------------------------------------------------
|
|
|
| // Runs beforeunload handlers for the current page, returning false if
|
| @@ -146,7 +175,12 @@
|
|
|
| virtual int dragIdentity() = 0;
|
|
|
| + // Helper method for drag and drop target operations: override the
|
| + // default drop effect with either a "copy" (accept true) or "none"
|
| + // (accept false) effect. Return true on success.
|
| + virtual bool setDropEffect(bool accept) = 0;
|
|
|
| +
|
| // Developer tools -----------------------------------------------------
|
|
|
| // Inspect a particular point in the WebView. (x = -1 || y = -1) is a
|
|
|