| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // IPC::Message::Sender | 63 // IPC::Message::Sender |
| 64 virtual bool Send(IPC::Message* msg); | 64 virtual bool Send(IPC::Message* msg); |
| 65 | 65 |
| 66 // WebWidgetDelegate | 66 // WebWidgetDelegate |
| 67 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); | 67 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); |
| 68 virtual void DidInvalidateRect(WebWidget* webwidget, | 68 virtual void DidInvalidateRect(WebWidget* webwidget, |
| 69 const WebKit::WebRect& rect); | 69 const WebKit::WebRect& rect); |
| 70 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | 70 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, |
| 71 const WebKit::WebRect& clip_rect); | 71 const WebKit::WebRect& clip_rect); |
| 72 virtual void SetCursor(WebWidget* webwidget, const WebCursor& cursor); | |
| 73 virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition); | 72 virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition); |
| 74 virtual void ShowWithItems(WebWidget* webwidget, | 73 virtual void ShowAsPopupWithItems(WebWidget* webwidget, |
| 75 const WebKit::WebRect& bounds, | 74 const WebKit::WebRect& bounds, |
| 76 int item_height, | 75 int item_height, |
| 77 int selected_index, | 76 int selected_index, |
| 78 const std::vector<MenuItem>& items); | 77 const std::vector<WebMenuItem>& items); |
| 79 virtual void CloseWidgetSoon(WebWidget* webwidget); | 78 virtual void CloseWidgetSoon(WebWidget* webwidget); |
| 80 virtual void Focus(WebWidget* webwidget); | 79 virtual void Focus(WebWidget* webwidget); |
| 81 virtual void Blur(WebWidget* webwidget); | 80 virtual void Blur(WebWidget* webwidget); |
| 81 virtual void SetCursor(WebWidget* webwidget, const WebCursor& cursor); |
| 82 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); | 82 virtual void GetWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); |
| 83 virtual void SetWindowRect(WebWidget* webwidget, | 83 virtual void SetWindowRect(WebWidget* webwidget, |
| 84 const WebKit::WebRect& rect); | 84 const WebKit::WebRect& rect); |
| 85 virtual void GetRootWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); | 85 virtual void GetRootWindowRect(WebWidget* webwidget, WebKit::WebRect* rect); |
| 86 virtual void GetRootWindowResizerRect(WebWidget* webwidget, | 86 virtual void GetRootWindowResizerRect(WebWidget* webwidget, |
| 87 WebKit::WebRect* rect); | 87 WebKit::WebRect* rect); |
| 88 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); | 88 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); |
| 89 virtual void RunModal(WebWidget* webwidget) {} | 89 virtual void RunModal(WebWidget* webwidget) {} |
| 90 virtual bool IsHidden(WebWidget* webwidget) { return is_hidden_; } | 90 virtual bool IsHidden(WebWidget* webwidget) { return is_hidden_; } |
| 91 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget); | 91 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget* webwidget); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Whether the window for this RenderWidget can be activated. | 265 // Whether the window for this RenderWidget can be activated. |
| 266 bool activatable_; | 266 bool activatable_; |
| 267 | 267 |
| 268 // Holds all the needed plugin window moves for a scroll. | 268 // Holds all the needed plugin window moves for a scroll. |
| 269 std::vector<WebPluginGeometry> plugin_window_moves_; | 269 std::vector<WebPluginGeometry> plugin_window_moves_; |
| 270 | 270 |
| 271 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 271 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 274 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |