Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: webkit/api/public/WebView.h

Issue 251051: Move various methods from glue/webview.h to api/public/WebView.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebView.h
===================================================================
--- webkit/api/public/WebView.h (revision 27646)
+++ 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
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698