diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 23:23:52 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 23:23:52 +0000 |
commit | 9ec8771f15b2e73ae132b294f86ef74d36034408 (patch) | |
tree | 1e96e9752d03fc48d61211519523023ff3b59cd0 /webkit/plugins/npapi/webplugin_delegate_impl.h | |
parent | 98f60edd0302dba3ccff439fb9e799e377248c93 (diff) | |
download | chromium_src-9ec8771f15b2e73ae132b294f86ef74d36034408.zip chromium_src-9ec8771f15b2e73ae132b294f86ef74d36034408.tar.gz chromium_src-9ec8771f15b2e73ae132b294f86ef74d36034408.tar.bz2 |
Get rid of the dependency on WebKit::WebCursorInfo internals from WebCursor.
This will help ensure that we don't have to depend on WebKit when we use the WebCursor
class. The current consumers of this class are plugins and browser.
We still have a dependency on the WebCursorInfo::Type enum which is fine.
Added helper functions InitializeCursorFromWebKitCursorInfo and GetWebKitCursorInfo to the webkit_glue
namespace in the newly added cursor_utils.cc/.h files which live in webkit_glue. These functions adapt
WebCursorInfo to our WebCursor and vice versa.
With this change we can move the WebCursor class to webkit\common in a subsequent CL.
BUG=237249
TBR=jamesr@chromium.org
Review URL: https://codereview.chromium.org/15946004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/webplugin_delegate_impl.h')
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl.h b/webkit/plugins/npapi/webplugin_delegate_impl.h index 7afc9de..6755891 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl.h +++ b/webkit/plugins/npapi/webplugin_delegate_impl.h @@ -110,7 +110,7 @@ class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate { virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect) OVERRIDE; virtual void SetFocus(bool focused) OVERRIDE; virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, - WebKit::WebCursorInfo* cursor_info) OVERRIDE; + WebCursor::CursorInfo* cursor_info) OVERRIDE; virtual NPObject* GetPluginScriptableObject() OVERRIDE; virtual bool GetFormValue(base::string16* value) OVERRIDE; virtual void DidFinishLoadWithReason(const GURL& url, @@ -286,7 +286,7 @@ class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate { // Does platform-specific event handling. Arguments and return are identical // to HandleInputEvent. bool PlatformHandleInputEvent(const WebKit::WebInputEvent& event, - WebKit::WebCursorInfo* cursor_info); + WebCursor::CursorInfo* cursor_info); // Closes down and destroys our plugin instance. void DestroyInstance(); |