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

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

Issue 58008: Replace webkit/glue/screen_info.h with WebKit/chromium/public/WebScreenInfo.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/gfx/native_widget_types.h" 11 #include "base/gfx/native_widget_types.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "webkit/glue/window_open_disposition.h" 13 #include "webkit/glue/window_open_disposition.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class Point; 16 class Point;
17 class Rect; 17 class Rect;
18 }
19
20 namespace WebKit {
21 struct WebScreenInfo;
18 } 22 }
19 23
20 class WebWidget; 24 class WebWidget;
21 class WebCursor; 25 class WebCursor;
22 struct WebPluginGeometry; 26 struct WebPluginGeometry;
23 27
24 struct MenuItem { 28 struct MenuItem {
25 // Container for information about entries in an HTML select popup menu. 29 // Container for information about entries in an HTML select popup menu.
26 // Types must be kept in sync with PopupListBox::ListItemType in 30 // Types must be kept in sync with PopupListBox::ListItemType in
27 // WebCore/platform/chromium/PopupMenuChromium.h. This won't change often 31 // WebCore/platform/chromium/PopupMenuChromium.h. This won't change often
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 118
115 // Suppress input events to other windows, and do not return until the widget 119 // Suppress input events to other windows, and do not return until the widget
116 // is closed. This is used to support |window.showModalDialog|. 120 // is closed. This is used to support |window.showModalDialog|.
117 virtual void RunModal(WebWidget* webwidget) = 0; 121 virtual void RunModal(WebWidget* webwidget) = 0;
118 122
119 // Owners depend on the delegates living as long as they do, so we ref them. 123 // Owners depend on the delegates living as long as they do, so we ref them.
120 virtual void AddRef() = 0; 124 virtual void AddRef() = 0;
121 virtual void Release() = 0; 125 virtual void Release() = 0;
122 126
123 // Returns true if the widget is in a background tab. 127 // Returns true if the widget is in a background tab.
124 virtual bool IsHidden() = 0; 128 virtual bool IsHidden(WebWidget* webwidget) = 0;
129
130 // Returns information about the screen associated with this widget.
131 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget) = 0;
125 132
126 WebWidgetDelegate() { } 133 WebWidgetDelegate() { }
127 virtual ~WebWidgetDelegate() { } 134 virtual ~WebWidgetDelegate() { }
128 135
129 private: 136 private:
130 DISALLOW_COPY_AND_ASSIGN(WebWidgetDelegate); 137 DISALLOW_COPY_AND_ASSIGN(WebWidgetDelegate);
131 }; 138 };
132 139
133 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__ 140 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698