Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: content/renderer/render_widget.h

Issue 10826189: Allow disabling input throttle through RendererPreference (for Browser Plugin guests) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // For unit tests. 177 // For unit tests.
178 friend class content::RenderWidgetTest; 178 friend class content::RenderWidgetTest;
179 179
180 enum ResizeAck { 180 enum ResizeAck {
181 SEND_RESIZE_ACK, 181 SEND_RESIZE_ACK,
182 NO_RESIZE_ACK, 182 NO_RESIZE_ACK,
183 }; 183 };
184 184
185 RenderWidget(WebKit::WebPopupType popup_type, 185 RenderWidget(WebKit::WebPopupType popup_type,
186 const WebKit::WebScreenInfo& screen_info, 186 const WebKit::WebScreenInfo& screen_info,
187 bool swapped_out); 187 bool swapped_out,
188 bool disable_input_throttle);
189
188 virtual ~RenderWidget(); 190 virtual ~RenderWidget();
189 191
190 // Initializes this view with the given opener. CompleteInit must be called 192 // Initializes this view with the given opener. CompleteInit must be called
191 // later. 193 // later.
192 void Init(int32 opener_id); 194 void Init(int32 opener_id);
193 195
194 // Called by Init and subclasses to perform initialization. 196 // Called by Init and subclasses to perform initialization.
195 void DoInit(int32 opener_id, 197 void DoInit(int32 opener_id,
196 WebKit::WebWidget* web_widget, 198 WebKit::WebWidget* web_widget,
197 IPC::SyncMessage* create_widget_message); 199 IPC::SyncMessage* create_widget_message);
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // case NULL is added to the queue. 565 // case NULL is added to the queue.
564 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_; 566 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_;
565 567
566 // Properties of the screen hosting this RenderWidget instance. 568 // Properties of the screen hosting this RenderWidget instance.
567 WebKit::WebScreenInfo screen_info_; 569 WebKit::WebScreenInfo screen_info_;
568 570
569 // The device scale factor. This value is computed from the DPI entries in 571 // The device scale factor. This value is computed from the DPI entries in
570 // |screen_info_| on some platforms, and defaults to 1 on other platforms. 572 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
571 float device_scale_factor_; 573 float device_scale_factor_;
572 574
575 // Disables throttling of input based on ViewMsg_UpdateRect_ACKs.
576 bool disable_input_throttle_;
darin (slow to review) 2012/08/07 21:54:39 nit: it is probably better to negate this variable
Fady Samuel 2012/08/07 22:17:22 Done.
577
573 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 578 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
574 }; 579 };
575 580
576 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 581 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698