| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 base::RefCounted<RenderWidget>::Release(); | 59 base::RefCounted<RenderWidget>::Release(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 // IPC::Channel::Listener | 62 // IPC::Channel::Listener |
| 63 virtual void OnMessageReceived(const IPC::Message& msg); | 63 virtual void OnMessageReceived(const IPC::Message& msg); |
| 64 | 64 |
| 65 // IPC::Message::Sender | 65 // IPC::Message::Sender |
| 66 virtual bool Send(IPC::Message* msg); | 66 virtual bool Send(IPC::Message* msg); |
| 67 | 67 |
| 68 // WebWidgetDelegate | 68 // WebWidgetDelegate |
| 69 virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget); | |
| 70 virtual void DidInvalidateRect(WebWidget* webwidget, | 69 virtual void DidInvalidateRect(WebWidget* webwidget, |
| 71 const WebKit::WebRect& rect); | 70 const WebKit::WebRect& rect); |
| 72 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, | 71 virtual void DidScrollRect(WebWidget* webwidget, int dx, int dy, |
| 73 const WebKit::WebRect& clip_rect); | 72 const WebKit::WebRect& clip_rect); |
| 74 virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition); | 73 virtual void Show(WebWidget* webwidget, WindowOpenDisposition disposition); |
| 75 virtual void ShowAsPopupWithItems(WebWidget* webwidget, | 74 virtual void ShowAsPopupWithItems(WebWidget* webwidget, |
| 76 const WebKit::WebRect& bounds, | 75 const WebKit::WebRect& bounds, |
| 77 int item_height, | 76 int item_height, |
| 78 int selected_index, | 77 int selected_index, |
| 79 const std::vector<WebMenuItem>& items); | 78 const std::vector<WebMenuItem>& items); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 293 |
| 295 // While we are waiting for the browser to update window sizes, | 294 // While we are waiting for the browser to update window sizes, |
| 296 // we track the pending size temporarily. | 295 // we track the pending size temporarily. |
| 297 int pending_window_rect_count_; | 296 int pending_window_rect_count_; |
| 298 WebKit::WebRect pending_window_rect_; | 297 WebKit::WebRect pending_window_rect_; |
| 299 | 298 |
| 300 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 299 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 301 }; | 300 }; |
| 302 | 301 |
| 303 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 302 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |