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

Side by Side Diff: webkit/glue/webwidget_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/webplugin_impl.cc ('k') | webkit/glue/webworker_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_WEBWIDGET_DELEGATE_H__ 5 #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__
6 #define WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__ 6 #define WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "webkit/glue/window_open_disposition.h" 12 #include "webkit/glue/window_open_disposition.h"
13 13
14 namespace WebKit { 14 namespace WebKit {
15 struct WebCursorInfo;
15 struct WebRect; 16 struct WebRect;
16 struct WebScreenInfo; 17 struct WebScreenInfo;
17 } 18 }
18 19
19 class WebWidget; 20 class WebWidget;
20 class WebCursor;
21 struct WebPluginGeometry; 21 struct WebPluginGeometry;
22 22
23 struct WebMenuItem { 23 struct WebMenuItem {
24 // Container for information about entries in an HTML select popup menu. 24 // Container for information about entries in an HTML select popup menu.
25 // Types must be kept in sync with PopupListBox::ListItemType in 25 // Types must be kept in sync with PopupListBox::ListItemType in
26 // WebCore/platform/chromium/PopupMenuChromium.h. This won't change often 26 // WebCore/platform/chromium/PopupMenuChromium.h. This won't change often
27 // (if ever). 27 // (if ever).
28 enum Type { 28 enum Type {
29 OPTION = 0, 29 OPTION = 0,
30 GROUP, 30 GROUP,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // This method is called to focus the window containing the WebWidget so 82 // This method is called to focus the window containing the WebWidget so
83 // that it receives keyboard events. 83 // that it receives keyboard events.
84 virtual void Focus(WebWidget* webwidget) = 0; 84 virtual void Focus(WebWidget* webwidget) = 0;
85 85
86 // This method is called to unfocus the window containing the WebWidget so tha t 86 // This method is called to unfocus the window containing the WebWidget so tha t
87 // it no longer receives keyboard events. 87 // it no longer receives keyboard events.
88 virtual void Blur(WebWidget* webwidget) = 0; 88 virtual void Blur(WebWidget* webwidget) = 0;
89 89
90 virtual void SetCursor(WebWidget* webwidget, 90 virtual void SetCursor(WebWidget* webwidget,
91 const WebCursor& cursor) = 0; 91 const WebKit::WebCursorInfo& cursor) = 0;
92
92 // Returns the rectangle of the WebWidget in screen coordinates. 93 // Returns the rectangle of the WebWidget in screen coordinates.
93 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect) = 0; 94 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect) = 0;
94 95
95 // This method is called to re-position the WebWidget on the screen. The give n 96 // This method is called to re-position the WebWidget on the screen. The give n
96 // rect is in screen coordinates. The implementation may choose to ignore 97 // rect is in screen coordinates. The implementation may choose to ignore
97 // this call or modify the given rect. This method may be called before Show 98 // this call or modify the given rect. This method may be called before Show
98 // has been called. 99 // has been called.
99 // TODO(darin): this is more of a request; does this need to take effect 100 // TODO(darin): this is more of a request; does this need to take effect
100 // synchronously? 101 // synchronously?
101 virtual void SetWindowRect(WebWidget* webwidget, 102 virtual void SetWindowRect(WebWidget* webwidget,
(...skipping 29 matching lines...) Expand all
131 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget) = 0; 132 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget) = 0;
132 133
133 WebWidgetDelegate() { } 134 WebWidgetDelegate() { }
134 virtual ~WebWidgetDelegate() { } 135 virtual ~WebWidgetDelegate() { }
135 136
136 private: 137 private:
137 DISALLOW_COPY_AND_ASSIGN(WebWidgetDelegate); 138 DISALLOW_COPY_AND_ASSIGN(WebWidgetDelegate);
138 }; 139 };
139 140
140 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__ 141 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__
OLDNEW
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698