diff options
Diffstat (limited to 'chrome/renderer/render_widget.h')
| -rw-r--r-- | chrome/renderer/render_widget.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h index c25c99a..4cf033e 100644 --- a/chrome/renderer/render_widget.h +++ b/chrome/renderer/render_widget.h @@ -142,8 +142,7 @@ class RenderWidget : public IPC::Channel::Listener, const gfx::Rect& resizer_rect); void OnWasHidden(); void OnWasRestored(bool needs_repainting); - void OnPaintRectAck(); - void OnScrollRectAck(); + void OnUpdateRectAck(); void OnRequestMoveAck(); void OnHandleInputEvent(const IPC::Message& message); void OnMouseCaptureLost(); @@ -167,14 +166,9 @@ class RenderWidget : public IPC::Channel::Listener, bool is_hidden() const { return is_hidden_; } - // True if a PaintRect_ACK message is pending. - bool paint_reply_pending() const { - return paint_reply_pending_; - } - - // True if a ScrollRect_ACK message is pending. - bool scroll_reply_pending() const { - return current_scroll_buf_ != NULL; + // True if an UpdateRect_ACK message is pending. + bool update_reply_pending() const { + return update_reply_pending_; } bool next_paint_is_resize_ack() const; @@ -238,22 +232,20 @@ class RenderWidget : public IPC::Channel::Listener, // The size of the RenderWidget. gfx::Size size_; - // Transport DIBs that are currently in use to transfer an image to the - // browser. + // The TransportDIB that is being used to transfer an image to the browser. TransportDIB* current_paint_buf_; - TransportDIB* current_scroll_buf_; PaintAggregator paint_aggregator_; // The area that must be reserved for drawing the resize corner. gfx::Rect resizer_rect_; - // Flags for the next ViewHostMsg_PaintRect message. + // Flags for the next ViewHostMsg_UpdateRect message. int next_paint_flags_; - // True if we are expecting a PaintRect_ACK message (i.e., that a PaintRect - // message has been sent). - bool paint_reply_pending_; + // True if we are expecting an UpdateRect_ACK message (i.e., that a + // UpdateRect message has been sent). + bool update_reply_pending_; // Set to true if we should ignore RenderWidget::Show calls. bool did_show_; |
