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

Side by Side Diff: webkit/glue/webplugin_delegate.h

Issue 155172: Start using WebCursorInfo from the WebKit API. WebCursorInfo is a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webcursor_win.cc ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WEBPLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "third_party/npapi/bindings/npapi.h" 12 #include "third_party/npapi/bindings/npapi.h"
13 13
14 struct NPObject; 14 struct NPObject;
15 15
16 class FilePath; 16 class FilePath;
17 class GURL; 17 class GURL;
18 class WebCursor;
19 class WebPlugin; 18 class WebPlugin;
20 class WebPluginResourceClient; 19 class WebPluginResourceClient;
21 20
22 namespace WebKit { 21 namespace WebKit {
23 class WebInputEvent; 22 class WebInputEvent;
23 struct WebCursorInfo;
24 } 24 }
25 25
26 namespace gfx { 26 namespace gfx {
27 class Rect; 27 class Rect;
28 } 28 }
29 29
30 // This is the interface that a plugin implementation needs to provide. 30 // This is the interface that a plugin implementation needs to provide.
31 class WebPluginDelegate { 31 class WebPluginDelegate {
32 public: 32 public:
33 enum PluginQuirks { 33 enum PluginQuirks {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Tells the plugin to print itself. 82 // Tells the plugin to print itself.
83 virtual void Print(gfx::NativeDrawingContext hdc) = 0; 83 virtual void Print(gfx::NativeDrawingContext hdc) = 0;
84 84
85 // Informs the plugin that it now has focus. 85 // Informs the plugin that it now has focus.
86 virtual void SetFocus() = 0; 86 virtual void SetFocus() = 0;
87 87
88 // For windowless plugins, gives them a user event like mouse/keyboard. 88 // For windowless plugins, gives them a user event like mouse/keyboard.
89 // Returns whether the event was handled. 89 // Returns whether the event was handled.
90 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, 90 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event,
91 WebCursor* cursor) = 0; 91 WebKit::WebCursorInfo* cursor) = 0;
92 92
93 // Gets the NPObject associated with the plugin for scripting. 93 // Gets the NPObject associated with the plugin for scripting.
94 virtual NPObject* GetPluginScriptableObject() = 0; 94 virtual NPObject* GetPluginScriptableObject() = 0;
95 95
96 // Receives notification about a resource load that the plugin initiated 96 // Receives notification about a resource load that the plugin initiated
97 // for a frame. 97 // for a frame.
98 virtual void DidFinishLoadWithReason(NPReason reason) = 0; 98 virtual void DidFinishLoadWithReason(NPReason reason) = 0;
99 99
100 // Returns the process id of the process that is running the plugin. 100 // Returns the process id of the process that is running the plugin.
101 virtual int GetProcessId() = 0; 101 virtual int GetProcessId() = 0;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual const gfx::Rect& GetClipRect() const; 146 virtual const gfx::Rect& GetClipRect() const;
147 147
148 // Returns a combination of PluginQuirks. 148 // Returns a combination of PluginQuirks.
149 virtual int GetQuirks() const; 149 virtual int GetQuirks() const;
150 150
151 private: 151 private:
152 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegate); 152 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegate);
153 }; 153 };
154 154
155 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 155 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webcursor_win.cc ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698