| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 void OnMsgRequestMove(const gfx::Rect& pos); | 311 void OnMsgRequestMove(const gfx::Rect& pos); |
| 312 void OnMsgPaintRect(const ViewHostMsg_PaintRect_Params& params); | 312 void OnMsgPaintRect(const ViewHostMsg_PaintRect_Params& params); |
| 313 void OnMsgScrollRect(const ViewHostMsg_ScrollRect_Params& params); | 313 void OnMsgScrollRect(const ViewHostMsg_ScrollRect_Params& params); |
| 314 void OnMsgInputEventAck(const IPC::Message& message); | 314 void OnMsgInputEventAck(const IPC::Message& message); |
| 315 void OnMsgFocus(); | 315 void OnMsgFocus(); |
| 316 void OnMsgBlur(); | 316 void OnMsgBlur(); |
| 317 void OnMsgSetCursor(const WebCursor& cursor); | 317 void OnMsgSetCursor(const WebCursor& cursor); |
| 318 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid | 318 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid |
| 319 // having to bring in render_messages.h in a header file. | 319 // having to bring in render_messages.h in a header file. |
| 320 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect); | 320 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect); |
| 321 void OnMsgShowPopup(const IPC::Message& message); |
| 321 | 322 |
| 322 // Paints the given bitmap to the current backing store at the given location. | 323 // Paints the given bitmap to the current backing store at the given location. |
| 323 void PaintBackingStoreRect(TransportDIB* dib, | 324 void PaintBackingStoreRect(TransportDIB* dib, |
| 324 const gfx::Rect& bitmap_rect, | 325 const gfx::Rect& bitmap_rect, |
| 325 const gfx::Size& view_size); | 326 const gfx::Size& view_size); |
| 326 | 327 |
| 327 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The | 328 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The |
| 328 // |dib| and its corresponding location |bitmap_rect| in the backing store | 329 // |dib| and its corresponding location |bitmap_rect| in the backing store |
| 329 // is the newly painted pixels by the renderer. | 330 // is the newly painted pixels by the renderer. |
| 330 void ScrollBackingStoreRect(TransportDIB* dib, | 331 void ScrollBackingStoreRect(TransportDIB* dib, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 418 |
| 418 // Set when we cancel updating the text direction. | 419 // Set when we cancel updating the text direction. |
| 419 // This flag also ignores succeeding update requests until we call | 420 // This flag also ignores succeeding update requests until we call |
| 420 // NotifyTextDirection(). | 421 // NotifyTextDirection(). |
| 421 bool text_direction_canceled_; | 422 bool text_direction_canceled_; |
| 422 | 423 |
| 423 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 424 }; | 425 }; |
| 425 | 426 |
| 426 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 427 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |