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

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

Issue 155243: Remove WebWidgetDelegate::GetContainingView since it is not needed.... (Closed) Base URL: svn://svn.chromium.org/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/chrome_client_impl.cc ('k') | webkit/glue/webwidget_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"
11 #include "base/string16.h" 10 #include "base/string16.h"
12 #include "webkit/glue/window_open_disposition.h" 11 #include "webkit/glue/window_open_disposition.h"
13 12
14 namespace WebKit { 13 namespace WebKit {
15 struct WebRect; 14 struct WebRect;
16 struct WebScreenInfo; 15 struct WebScreenInfo;
17 } 16 }
18 17
19 class WebWidget; 18 class WebWidget;
20 class WebCursor; 19 class WebCursor;
(...skipping 10 matching lines...) Expand all
31 SEPARATOR 30 SEPARATOR
32 }; 31 };
33 32
34 string16 label; 33 string16 label;
35 Type type; 34 Type type;
36 bool enabled; 35 bool enabled;
37 }; 36 };
38 37
39 class WebWidgetDelegate { 38 class WebWidgetDelegate {
40 public: 39 public:
41 // Returns the view in which the WebWidget is embedded.
42 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget) = 0;
43
44 // Called when a region of the WebWidget needs to be re-painted. 40 // Called when a region of the WebWidget needs to be re-painted.
45 virtual void DidInvalidateRect(WebWidget* webwidget, 41 virtual void DidInvalidateRect(WebWidget* webwidget,
46 const WebKit::WebRect& rect) = 0; 42 const WebKit::WebRect& rect) = 0;
47 43
48 // Called when a region of the WebWidget, given by clip_rect, should be 44 // Called when a region of the WebWidget, given by clip_rect, should be
49 // scrolled by the specified dx and dy amounts. 45 // scrolled by the specified dx and dy amounts.
50 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, 46 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy,
51 const WebKit::WebRect& clip_rect) = 0; 47 const WebKit::WebRect& clip_rect) = 0;
52 48
53 // This method is called to instruct the window containing the WebWidget to 49 // This method is called to instruct the window containing the WebWidget to
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget) = 0; 127 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget) = 0;
132 128
133 WebWidgetDelegate() { } 129 WebWidgetDelegate() { }
134 virtual ~WebWidgetDelegate() { } 130 virtual ~WebWidgetDelegate() { }
135 131
136 private: 132 private:
137 DISALLOW_COPY_AND_ASSIGN(WebWidgetDelegate); 133 DISALLOW_COPY_AND_ASSIGN(WebWidgetDelegate);
138 }; 134 };
139 135
140 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__ 136 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_DELEGATE_H__
OLDNEW
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webwidget_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698