Index: chrome/renderer/render_widget.cc |
=================================================================== |
--- chrome/renderer/render_widget.cc (revision 9176) |
+++ chrome/renderer/render_widget.cc (working copy) |
@@ -10,6 +10,7 @@ |
#include "base/message_loop.h" |
#include "base/scoped_ptr.h" |
#include "build/build_config.h" |
+#include "chrome/common/render_messages.h" |
#include "chrome/renderer/render_process.h" |
#include "skia/ext/platform_canvas.h" |
@@ -727,6 +728,26 @@ |
DidInvalidateRect(webwidget_, repaint_rect); |
} |
+bool RenderWidget::next_paint_is_resize_ack() const { |
+ return ViewHostMsg_PaintRect_Flags::is_resize_ack(next_paint_flags_); |
+} |
+ |
+bool RenderWidget::next_paint_is_restore_ack() const { |
+ return ViewHostMsg_PaintRect_Flags::is_restore_ack(next_paint_flags_); |
+} |
+ |
+void RenderWidget::set_next_paint_is_resize_ack() { |
+ next_paint_flags_ |= ViewHostMsg_PaintRect_Flags::IS_RESIZE_ACK; |
+} |
+ |
+void RenderWidget::set_next_paint_is_restore_ack() { |
+ next_paint_flags_ |= ViewHostMsg_PaintRect_Flags::IS_RESTORE_ACK; |
+} |
+ |
+void RenderWidget::set_next_paint_is_repaint_ack() { |
+ next_paint_flags_ |= ViewHostMsg_PaintRect_Flags::IS_REPAINT_ACK; |
+} |
+ |
void RenderWidget::UpdateIME() { |
// If a browser process does not have IMEs, its IMEs are not active, or there |
// are not any attached widgets. |