blob: b4b22afdff455b85fd579ca3f87553cc2965c9b2 [file] [log] [blame]
[email protected]b9b751f22011-03-25 14:04:121// Copyright (c) 2011 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
[email protected]2cff0052011-03-18 16:51:445#ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6#define CONTENT_RENDERER_RENDER_WIDGET_H_
[email protected]32b76ef2010-07-26 23:08:247#pragma once
initial.commit09911bf2008-07-26 23:55:298
9#include <vector>
[email protected]010ea08a2009-10-11 20:21:3210
initial.commit09911bf2008-07-26 23:55:2911#include "base/basictypes.h"
[email protected]3b63f8f42011-03-28 01:54:1512#include "base/memory/ref_counted.h"
[email protected]8704f89b2011-04-15 00:30:0513#include "base/memory/scoped_ptr.h"
14#include "base/time.h"
[email protected]921f1592011-03-18 00:41:0215#include "content/renderer/paint_aggregator.h"
[email protected]946d1b22009-07-22 23:57:2116#include "ipc/ipc_channel.h"
[email protected]8bd0fe62011-01-17 06:44:3717#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h"
18#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
19#include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
20#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
21#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h"
22#include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h"
[email protected]d65adb12010-04-28 17:26:4923#include "third_party/skia/include/core/SkBitmap.h"
[email protected]08397d52011-02-05 01:53:3824#include "ui/gfx/native_widget_types.h"
25#include "ui/gfx/rect.h"
26#include "ui/gfx/size.h"
[email protected]b9b751f22011-03-25 14:04:1227#include "ui/gfx/surface/transport_dib.h"
initial.commit09911bf2008-07-26 23:55:2928#include "webkit/glue/webcursor.h"
initial.commit09911bf2008-07-26 23:55:2929
[email protected]8085dbc82008-09-26 22:53:4430class RenderThreadBase;
31
[email protected]46f36a492010-07-28 19:36:4132namespace gfx {
33class Point;
34}
35
[email protected]484955942010-08-19 16:13:1836namespace IPC {
37class SyncMessage;
38}
39
[email protected]46f36a492010-07-28 19:36:4140namespace skia {
41class PlatformCanvas;
42}
43
[email protected]88efb7ec2009-07-14 16:32:5944namespace WebKit {
[email protected]6a8ddba52010-09-05 04:38:0645class WebMouseEvent;
[email protected]484955942010-08-19 16:13:1846class WebWidget;
[email protected]88efb7ec2009-07-14 16:32:5947struct WebPopupMenuInfo;
48}
49
[email protected]191eb3f72010-12-21 06:27:5050namespace webkit {
51namespace npapi {
[email protected]f103ab72009-09-02 17:10:5952struct WebPluginGeometry;
[email protected]719b36f2010-12-22 20:36:4653} // namespace npapi
54
55namespace ppapi {
56class PluginInstance;
57} // namespace ppapi
58} // namespace webkit
[email protected]f103ab72009-09-02 17:10:5959
initial.commit09911bf2008-07-26 23:55:2960// RenderWidget provides a communication bridge between a WebWidget and
61// a RenderWidgetHost, the latter of which lives in a different process.
62class RenderWidget : public IPC::Channel::Listener,
63 public IPC::Message::Sender,
[email protected]4873c7d2009-07-16 06:36:2864 virtual public WebKit::WebWidgetClient,
initial.commit09911bf2008-07-26 23:55:2965 public base::RefCounted<RenderWidget> {
66 public:
67 // Creates a new RenderWidget. The opener_id is the routing ID of the
[email protected]8085dbc82008-09-26 22:53:4468 // RenderView that this widget lives inside. The render_thread is any
[email protected]8930d472009-02-21 08:05:2869 // RenderThreadBase implementation, mostly commonly RenderThread::current().
[email protected]0ebf3872008-11-07 21:35:0370 static RenderWidget* Create(int32 opener_id,
71 RenderThreadBase* render_thread,
[email protected]3e2b375b2010-04-07 17:03:1272 WebKit::WebPopupType popup_type);
initial.commit09911bf2008-07-26 23:55:2973
[email protected]484955942010-08-19 16:13:1874 // Creates a WebWidget based on the popup type.
75 static WebKit::WebWidget* CreateWebWidget(RenderWidget* render_widget);
76
[email protected]c03a6e72011-04-19 21:42:0677 // The compositing surface assigned by the RenderWidgetHost
78 // (or RenderViewHost). Will be gfx::kNullPluginWindow if not assigned yet,
79 // in which case we should not create any GPU command buffers with it.
80 gfx::PluginWindowHandle compositing_surface() const {
81 return compositing_surface_;
82 }
83
initial.commit09911bf2008-07-26 23:55:2984 // The routing ID assigned by the RenderProcess. Will be MSG_ROUTING_NONE if
85 // not yet assigned a view ID, in which case, the process MUST NOT send
86 // messages with this ID to the parent.
87 int32 routing_id() const {
88 return routing_id_;
89 }
90
91 // May return NULL when the window is closing.
[email protected]93b9d692011-04-13 00:44:3192 WebKit::WebWidget* webwidget() const { return webwidget_; }
93 gfx::NativeViewId host_window() const { return host_window_; }
94 gfx::Size size() const { return size_; }
[email protected]589621b2010-09-23 22:01:0795 bool has_focus() const { return has_focus_; }
96
initial.commit09911bf2008-07-26 23:55:2997 // IPC::Channel::Listener
[email protected]a95986a82010-12-24 06:19:2898 virtual bool OnMessageReceived(const IPC::Message& msg);
initial.commit09911bf2008-07-26 23:55:2999
100 // IPC::Message::Sender
101 virtual bool Send(IPC::Message* msg);
102
[email protected]4873c7d2009-07-16 06:36:28103 // WebKit::WebWidgetClient
104 virtual void didInvalidateRect(const WebKit::WebRect&);
105 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect);
[email protected]a79d8a632010-11-18 22:35:56106 virtual void didActivateAcceleratedCompositing(bool active);
[email protected]f98d7e3c2010-09-13 22:30:46107 virtual void scheduleComposite();
[email protected]5f8b1022011-01-21 23:34:50108 virtual void scheduleAnimation();
[email protected]4873c7d2009-07-16 06:36:28109 virtual void didFocus();
110 virtual void didBlur();
111 virtual void didChangeCursor(const WebKit::WebCursorInfo&);
112 virtual void closeWidgetSoon();
113 virtual void show(WebKit::WebNavigationPolicy);
114 virtual void runModal() {}
115 virtual WebKit::WebRect windowRect();
116 virtual void setWindowRect(const WebKit::WebRect&);
117 virtual WebKit::WebRect windowResizerRect();
118 virtual WebKit::WebRect rootWindowRect();
119 virtual WebKit::WebScreenInfo screenInfo();
[email protected]fa7b1dc2010-06-23 17:53:04120 virtual void resetInputMethod();
[email protected]4873c7d2009-07-16 06:36:28121
122 // Called when a plugin is moved. These events are queued up and sent with
123 // the next paint or scroll message to the host.
[email protected]191eb3f72010-12-21 06:27:50124 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move);
initial.commit09911bf2008-07-26 23:55:29125
[email protected]268654772009-08-06 23:02:04126 // Called when a plugin window has been destroyed, to make sure the currently
127 // pending moves don't try to reference it.
128 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window);
129
initial.commit09911bf2008-07-26 23:55:29130 // Close the underlying WebWidget.
[email protected]60c42a8c72009-10-09 04:08:59131 virtual void Close();
initial.commit09911bf2008-07-26 23:55:29132
133 protected:
[email protected]8085dbc82008-09-26 22:53:44134 // Friend RefCounted so that the dtor can be non-public. Using this class
135 // without ref-counting is an error.
136 friend class base::RefCounted<RenderWidget>;
[email protected]7339cd22010-10-27 00:11:20137 // For unit tests.
138 friend class RenderWidgetTest;
[email protected]8085dbc82008-09-26 22:53:44139
[email protected]3e2b375b2010-04-07 17:03:12140 RenderWidget(RenderThreadBase* render_thread,
141 WebKit::WebPopupType popup_type);
[email protected]8085dbc82008-09-26 22:53:44142 virtual ~RenderWidget();
initial.commit09911bf2008-07-26 23:55:29143
144 // Initializes this view with the given opener. CompleteInit must be called
145 // later.
146 void Init(int32 opener_id);
147
[email protected]484955942010-08-19 16:13:18148 // Called by Init and subclasses to perform initialization.
149 void DoInit(int32 opener_id,
150 WebKit::WebWidget* web_widget,
151 IPC::SyncMessage* create_widget_message);
152
initial.commit09911bf2008-07-26 23:55:29153 // Finishes creation of a pending view started with Init.
[email protected]c03a6e72011-04-19 21:42:06154 void CompleteInit(gfx::NativeViewId parent,
155 gfx::PluginWindowHandle compositing_surface);
initial.commit09911bf2008-07-26 23:55:29156
[email protected]992db4c2011-05-12 15:37:15157 // Sets whether this RenderWidget has been swapped out to be displayed by
158 // a RenderWidget in a different process. If so, no new IPC messages will be
159 // sent (only ACKs) and the process is free to exit when there are no other
160 // active RenderWidgets.
161 void SetSwappedOut(bool is_swapped_out);
162
[email protected]661eb9d2009-02-03 02:11:48163 // Paints the given rectangular region of the WebWidget into canvas (a
164 // shared memory segment returned by AllocPaintBuf on Windows). The caller
165 // must ensure that the given rect fits within the bounds of the WebWidget.
[email protected]4fb66842009-12-04 21:41:00166 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin,
167 skia::PlatformCanvas* canvas);
168
169 // Paints a border at the given rect for debugging purposes.
170 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
initial.commit09911bf2008-07-26 23:55:29171
[email protected]52ccd0ea2011-02-16 01:09:05172 void AnimationCallback();
173 void AnimateIfNeeded();
[email protected]65225772011-05-12 21:10:24174 void InvalidationCallback();
175 void DoDeferredUpdateAndSendInputAck();
[email protected]552e6002009-11-19 05:24:57176 void DoDeferredUpdate();
[email protected]2533ce12009-05-09 00:02:24177 void DoDeferredClose();
178 void DoDeferredSetWindowRect(const WebKit::WebRect& pos);
initial.commit09911bf2008-07-26 23:55:29179
[email protected]699ab0d2009-04-23 23:19:14180 // Set the background of the render widget to a bitmap. The bitmap will be
181 // tiled in both directions if it isn't big enough to fill the area. This is
182 // mainly intended to be used in conjuction with WebView::SetIsTransparent().
183 virtual void SetBackground(const SkBitmap& bitmap);
184
initial.commit09911bf2008-07-26 23:55:29185 // RenderWidget IPC message handlers
186 void OnClose();
[email protected]c03a6e72011-04-19 21:42:06187 void OnCreatingNewAck(gfx::NativeViewId parent,
188 gfx::PluginWindowHandle compositing_surface);
[email protected]30f75e62009-02-25 22:01:00189 virtual void OnResize(const gfx::Size& new_size,
190 const gfx::Rect& resizer_rect);
[email protected]941e4552010-02-01 21:23:43191 virtual void OnWasHidden();
192 virtual void OnWasRestored(bool needs_repainting);
[email protected]992db4c2011-05-12 15:37:15193 virtual void OnWasSwappedOut();
[email protected]53d3f302009-12-21 04:42:05194 void OnUpdateRectAck();
[email protected]8400e032010-02-26 18:50:11195 void OnCreateVideoAck(int32 video_id);
196 void OnUpdateVideoAck(int32 video_id);
[email protected]2533ce12009-05-09 00:02:24197 void OnRequestMoveAck();
initial.commit09911bf2008-07-26 23:55:29198 void OnHandleInputEvent(const IPC::Message& message);
199 void OnMouseCaptureLost();
[email protected]1e6e3c992010-02-08 15:52:13200 virtual void OnSetFocus(bool enable);
[email protected]fa7b1dc2010-06-23 17:53:04201 void OnSetInputMethodActive(bool is_active);
202 void OnImeSetComposition(
203 const string16& text,
204 const std::vector<WebKit::WebCompositionUnderline>& underlines,
205 int selection_start,
206 int selection_end);
[email protected]6b349652011-01-05 18:36:24207 void OnImeConfirmComposition(const string16& text);
[email protected]d65adb12010-04-28 17:26:49208 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id,
[email protected]c88c9442010-07-19 18:55:09209 int tag,
[email protected]948f7ab72010-05-28 23:48:08210 const gfx::Size& page_size,
[email protected]d65adb12010-04-28 17:26:49211 const gfx::Size& desired_size);
[email protected]ec7dc112008-08-06 05:30:12212 void OnMsgRepaint(const gfx::Size& size_to_paint);
[email protected]4873c7d2009-07-16 06:36:28213 void OnSetTextDirection(WebKit::WebTextDirection direction);
initial.commit09911bf2008-07-26 23:55:29214
[email protected]00c39612010-03-06 02:53:28215 // Override point to notify derived classes that a paint has happened.
216 // DidInitiatePaint happens when we've generated a new bitmap and sent it to
217 // the browser. DidFlushPaint happens once we've received the ACK that the
218 // screen has actually been updated.
219 virtual void DidInitiatePaint() {}
220 virtual void DidFlushPaint() {}
[email protected]a2f6bc112009-06-27 16:27:25221
[email protected]65225772011-05-12 21:10:24222 // Override and return true when the widget is rendered with a graphics
223 // context that supports asynchronous swapbuffers. When returning true,
224 // the subclass must call RenderWidget::OnSwapBuffersComplete() when
225 // swaps complete, and OnSwapBuffersAborted if the context is lost.
226 virtual bool SupportsAsynchronousSwapBuffers();
227
228 // Notifies scheduler that the RenderWidget's subclass has finished or aborted
229 // a swap buffers.
230 void OnSwapBuffersAborted();
231 void OnSwapBuffersComplete();
232
[email protected]ca4847f2010-09-24 05:39:15233 // Detects if a suitable opaque plugin covers the given paint bounds with no
234 // compositing necessary.
235 //
[email protected]719b36f2010-12-22 20:36:46236 // Returns the plugin instance that's the source of the paint if the paint
237 // can be handled by just blitting the plugin bitmap. In this case, the
238 // location, clipping, and ID of the backing store will be filled into the
239 // given output parameters.
[email protected]ca4847f2010-09-24 05:39:15240 //
[email protected]719b36f2010-12-22 20:36:46241 // A return value of null means optimized painting can not be used and we
[email protected]ca4847f2010-09-24 05:39:15242 // should continue with the normal painting code path.
[email protected]719b36f2010-12-22 20:36:46243 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint(
[email protected]ca4847f2010-09-24 05:39:15244 const gfx::Rect& paint_bounds,
245 TransportDIB** dib,
246 gfx::Rect* location,
247 gfx::Rect* clip);
248
[email protected]d54169e92011-01-21 09:19:52249 // Gets the scroll offset of this widget, if this widget has a notion of
250 // scroll offset.
[email protected]bcaf2272011-02-15 15:29:43251 virtual gfx::Point GetScrollOffset();
[email protected]d54169e92011-01-21 09:19:52252
[email protected]bee16aab2009-08-26 15:55:03253 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should
254 // use this method so that we can properly inform the RenderThread of our
255 // state.
256 void SetHidden(bool hidden);
257
[email protected]882daa92009-11-05 16:31:31258 bool is_hidden() const { return is_hidden_; }
259
[email protected]53d3f302009-12-21 04:42:05260 // True if an UpdateRect_ACK message is pending.
261 bool update_reply_pending() const {
262 return update_reply_pending_;
initial.commit09911bf2008-07-26 23:55:29263 }
264
[email protected]674741932009-02-04 23:44:46265 bool next_paint_is_resize_ack() const;
266 bool next_paint_is_restore_ack() const;
267 void set_next_paint_is_resize_ack();
268 void set_next_paint_is_restore_ack();
269 void set_next_paint_is_repaint_ack();
[email protected]ec7dc112008-08-06 05:30:12270
[email protected]fa7b1dc2010-06-23 17:53:04271 // Checks if the input method state and caret position have been changed.
272 // If they are changed, the new value will be sent to the browser process.
273 void UpdateInputMethod();
initial.commit09911bf2008-07-26 23:55:29274
275 // Tells the renderer it does not have focus. Used to prevent us from getting
276 // the focus on our own when the browser did not focus us.
277 void ClearFocus();
278
[email protected]2533ce12009-05-09 00:02:24279 // Set the pending window rect.
280 // Because the real render_widget is hosted in another process, there is
281 // a time period where we may have set a new window rect which has not yet
282 // been processed by the browser. So we maintain a pending window rect
283 // size. If JS code sets the WindowRect, and then immediately calls
284 // GetWindowRect() we'll use this pending window rect as the size.
285 void SetPendingWindowRect(const WebKit::WebRect& r);
286
[email protected]446705872009-09-10 07:22:48287 // Called by OnHandleInputEvent() to notify subclasses that a key event was
288 // just handled.
289 virtual void DidHandleKeyEvent() {}
290
[email protected]6a8ddba52010-09-05 04:38:06291 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
292 // just handled.
293 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
294
initial.commit09911bf2008-07-26 23:55:29295 // Routing ID that allows us to communicate to the parent browser process
296 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
297 int32 routing_id_;
298
[email protected]c5b3b5e2009-02-13 06:41:11299 // We are responsible for destroying this object via its Close method.
[email protected]4873c7d2009-07-16 06:36:28300 WebKit::WebWidget* webwidget_;
initial.commit09911bf2008-07-26 23:55:29301
302 // Set to the ID of the view that initiated creating this view, if any. When
303 // the view was initiated by the browser (the common case), this will be
304 // MSG_ROUTING_NONE. This is used in determining ownership when opening
305 // child tabs. See RenderWidget::createWebViewWithRequest.
306 //
307 // This ID may refer to an invalid view if that view is closed before this
308 // view is.
309 int32 opener_id_;
310
[email protected]8085dbc82008-09-26 22:53:44311 // The thread that does our IPC.
312 RenderThreadBase* render_thread_;
313
initial.commit09911bf2008-07-26 23:55:29314 // The position where this view should be initially shown.
315 gfx::Rect initial_pos_;
316
317 // The window we are embedded within. TODO(darin): kill this.
[email protected]18bcc3c2009-01-27 21:39:15318 gfx::NativeViewId host_window_;
initial.commit09911bf2008-07-26 23:55:29319
320 // We store the current cursor object so we can avoid spamming SetCursor
321 // messages.
322 WebCursor current_cursor_;
[email protected]88efb7ec2009-07-14 16:32:59323
initial.commit09911bf2008-07-26 23:55:29324 // The size of the RenderWidget.
325 gfx::Size size_;
326
[email protected]b4d08452010-10-05 17:34:35327 // The TransportDIB that is being used to transfer an image to the browser.
328 TransportDIB* current_paint_buf_;
initial.commit09911bf2008-07-26 23:55:29329
[email protected]552e6002009-11-19 05:24:57330 PaintAggregator paint_aggregator_;
initial.commit09911bf2008-07-26 23:55:29331
[email protected]f21c613a2009-02-12 14:46:17332 // The area that must be reserved for drawing the resize corner.
333 gfx::Rect resizer_rect_;
334
[email protected]53d3f302009-12-21 04:42:05335 // Flags for the next ViewHostMsg_UpdateRect message.
initial.commit09911bf2008-07-26 23:55:29336 int next_paint_flags_;
337
[email protected]53d3f302009-12-21 04:42:05338 // True if we are expecting an UpdateRect_ACK message (i.e., that a
339 // UpdateRect message has been sent).
340 bool update_reply_pending_;
initial.commit09911bf2008-07-26 23:55:29341
[email protected]65225772011-05-12 21:10:24342 // True if the underlying graphics context supports asynchronous swap.
343 // Cached on the RenderWidget because determining support is costly.
344 bool using_asynchronous_swapbuffers_;
345
346 // Number of OnSwapBuffersComplete we are expecting. Incremented each time
347 // WebWidget::composite has been been performed when the RenderWidget subclass
348 // SupportsAsynchronousSwapBuffers. Decremented in OnSwapBuffers. Will block
349 // rendering.
350 int num_swapbuffers_complete_pending_;
351
352 // When accelerated rendering is on, is the maximum number of swapbuffers that
353 // can be outstanding before we start throttling based on
354 // OnSwapBuffersComplete callback.
355 static const int kMaxSwapBuffersPending = 2;
356
initial.commit09911bf2008-07-26 23:55:29357 // Set to true if we should ignore RenderWidget::Show calls.
358 bool did_show_;
359
360 // Indicates that we shouldn't bother generated paint events.
361 bool is_hidden_;
362
363 // Indicates that we should be repainted when restored. This flag is set to
364 // true if we receive an invalidation / scroll event from webkit while our
365 // is_hidden_ flag is set to true. This is used to force a repaint once we
366 // restore to account for the fact that our host would not know about the
367 // invalidation / scroll event(s) from webkit while we are hidden.
368 bool needs_repainting_on_restore_;
369
370 // Indicates whether we have been focused/unfocused by the browser.
371 bool has_focus_;
372
[email protected]5dd768212009-08-13 23:34:49373 // Are we currently handling an input event?
374 bool handling_input_event_;
375
initial.commit09911bf2008-07-26 23:55:29376 // True if we have requested this widget be closed. No more messages will
377 // be sent, except for a Close.
378 bool closing_;
379
[email protected]992db4c2011-05-12 15:37:15380 // Whether this RenderWidget is currently swapped out, such that the view is
381 // being rendered by another process. If all RenderWidgets in a process are
382 // swapped out, the process can exit.
383 bool is_swapped_out_;
384
[email protected]fa7b1dc2010-06-23 17:53:04385 // Indicates if an input method is active in the browser process.
386 bool input_method_is_active_;
initial.commit09911bf2008-07-26 23:55:29387
[email protected]fa7b1dc2010-06-23 17:53:04388 // Stores the current text input type of |webwidget_|.
389 WebKit::WebTextInputType text_input_type_;
390
391 // Stores the current caret bounds of input focus.
392 WebKit::WebRect caret_bounds_;
initial.commit09911bf2008-07-26 23:55:29393
[email protected]3e2b375b2010-04-07 17:03:12394 // The kind of popup this widget represents, NONE if not a popup.
395 WebKit::WebPopupType popup_type_;
[email protected]0ebf3872008-11-07 21:35:03396
initial.commit09911bf2008-07-26 23:55:29397 // Holds all the needed plugin window moves for a scroll.
[email protected]191eb3f72010-12-21 06:27:50398 typedef std::vector<webkit::npapi::WebPluginGeometry> WebPluginGeometryVector;
[email protected]268654772009-08-06 23:02:04399 WebPluginGeometryVector plugin_window_moves_;
initial.commit09911bf2008-07-26 23:55:29400
[email protected]699ab0d2009-04-23 23:19:14401 // A custom background for the widget.
402 SkBitmap background_;
403
[email protected]2533ce12009-05-09 00:02:24404 // While we are waiting for the browser to update window sizes,
405 // we track the pending size temporarily.
406 int pending_window_rect_count_;
407 WebKit::WebRect pending_window_rect_;
408
[email protected]12fbad812009-09-01 18:21:24409 scoped_ptr<IPC::Message> pending_input_event_ack_;
410
[email protected]867125a02009-12-10 06:01:48411 // Indicates if the next sequence of Char events should be suppressed or not.
412 bool suppress_next_char_events_;
413
[email protected]a79d8a632010-11-18 22:35:56414 // Set to true if painting to the window is handled by the accelerated
415 // compositor.
416 bool is_accelerated_compositing_active_;
[email protected]edbcde932010-05-07 17:10:46417
[email protected]c03a6e72011-04-19 21:42:06418 // Handle to a surface that is drawn to when accelerated compositing is
419 // active.
420 gfx::PluginWindowHandle compositing_surface_;
421
[email protected]5f8b1022011-01-21 23:34:50422 base::Time animation_floor_time_;
423 bool animation_update_pending_;
[email protected]52ccd0ea2011-02-16 01:09:05424 bool animation_task_posted_;
[email protected]65225772011-05-12 21:10:24425 bool invalidation_task_posted_;
[email protected]5f8b1022011-01-21 23:34:50426
[email protected]05d478752009-04-08 23:38:16427 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
initial.commit09911bf2008-07-26 23:55:29428};
429
[email protected]2cff0052011-03-18 16:51:44430#endif // CONTENT_RENDERER_RENDER_WIDGET_H_