summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_widget.cc')
-rw-r--r--chrome/renderer/render_widget.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 1e14993..82ca86c 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -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 @@ void RenderWidget::OnMsgRepaint(const gfx::Size& size_to_paint) {
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.