| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 void OnMsgPaintRect(const ViewHostMsg_PaintRect_Params& params); | 385 void OnMsgPaintRect(const ViewHostMsg_PaintRect_Params& params); |
| 386 void OnMsgScrollRect(const ViewHostMsg_ScrollRect_Params& params); | 386 void OnMsgScrollRect(const ViewHostMsg_ScrollRect_Params& params); |
| 387 void OnMsgInputEventAck(const IPC::Message& message); | 387 void OnMsgInputEventAck(const IPC::Message& message); |
| 388 void OnMsgFocus(); | 388 void OnMsgFocus(); |
| 389 void OnMsgBlur(); | 389 void OnMsgBlur(); |
| 390 void OnMsgSetCursor(const WebCursor& cursor); | 390 void OnMsgSetCursor(const WebCursor& cursor); |
| 391 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid | 391 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid |
| 392 // having to bring in render_messages.h in a header file. | 392 // having to bring in render_messages.h in a header file. |
| 393 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect); | 393 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect); |
| 394 void OnMsgShowPopup(const IPC::Message& message); | 394 void OnMsgShowPopup(const IPC::Message& message); |
| 395 #if defined(OS_LINUX) |
| 396 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle *container); |
| 397 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle container); |
| 398 #endif |
| 395 | 399 |
| 396 // Paints the given bitmap to the current backing store at the given location. | 400 // Paints the given bitmap to the current backing store at the given location. |
| 397 void PaintBackingStoreRect(TransportDIB* dib, | 401 void PaintBackingStoreRect(TransportDIB* dib, |
| 398 const gfx::Rect& bitmap_rect, | 402 const gfx::Rect& bitmap_rect, |
| 399 const gfx::Size& view_size); | 403 const gfx::Size& view_size); |
| 400 | 404 |
| 401 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The | 405 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The |
| 402 // |dib| and its corresponding location |bitmap_rect| in the backing store | 406 // |dib| and its corresponding location |bitmap_rect| in the backing store |
| 403 // is the newly painted pixels by the renderer. | 407 // is the newly painted pixels by the renderer. |
| 404 void ScrollBackingStoreRect(TransportDIB* dib, | 408 void ScrollBackingStoreRect(TransportDIB* dib, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 | 502 |
| 499 // Set when we cancel updating the text direction. | 503 // Set when we cancel updating the text direction. |
| 500 // This flag also ignores succeeding update requests until we call | 504 // This flag also ignores succeeding update requests until we call |
| 501 // NotifyTextDirection(). | 505 // NotifyTextDirection(). |
| 502 bool text_direction_canceled_; | 506 bool text_direction_canceled_; |
| 503 | 507 |
| 504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 508 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 505 }; | 509 }; |
| 506 | 510 |
| 507 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 511 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |