| Index: content/renderer/render_widget.h
|
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
|
| index f355732ca8e65c01647208d2616c25ef18cf4234..2281ce962738eac89a349da96ef29cf90c71f474 100644
|
| --- a/content/renderer/render_widget.h
|
| +++ b/content/renderer/render_widget.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/debug/trace_event_synthetic_delay.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/time/time.h"
|
| @@ -71,6 +72,7 @@ class RenderWidgetTest;
|
| class ResizingModeSelector;
|
| struct ContextMenuParams;
|
| struct GpuRenderingStats;
|
| +struct SyntheticDelayConfiguration;
|
| struct WebPluginGeometry;
|
|
|
| // RenderWidget provides a communication bridge between a WebWidget and
|
| @@ -185,6 +187,13 @@ class CONTENT_EXPORT RenderWidget
|
| scoped_ptr<SyntheticGestureParams> gesture_params,
|
| const SyntheticGestureCompletionCallback& callback);
|
|
|
| + // Configure synthetic delays across all processes. Once all processes have
|
| + // acknowledged the new delay configuration, |callback| will be called back.
|
| + typedef base::Callback<void()> SyntheticDelayConfigurationCallback;
|
| + void ConfigureSyntheticDelays(
|
| + const std::vector<content::SyntheticDelayConfiguration>& delays,
|
| + const SyntheticDelayConfigurationCallback& callback);
|
| +
|
| // Close the underlying WebWidget.
|
| virtual void Close();
|
|
|
| @@ -345,6 +354,7 @@ class CONTENT_EXPORT RenderWidget
|
| const gfx::Size& desired_size);
|
| void OnRepaint(gfx::Size size_to_paint);
|
| void OnSyntheticGestureCompleted();
|
| + void OnConfigureSyntheticDelaysAck();
|
| void OnSetTextDirection(blink::WebTextDirection direction);
|
| void OnGetFPS();
|
| void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
|
| @@ -747,6 +757,8 @@ class CONTENT_EXPORT RenderWidget
|
| std::queue<SyntheticGestureCompletionCallback>
|
| pending_synthetic_gesture_callbacks_;
|
|
|
| + SyntheticDelayConfigurationCallback pending_delay_configuration_;
|
| +
|
| // Specified whether the compositor will run in its own thread.
|
| bool is_threaded_compositing_enabled_;
|
|
|
|
|