virtual bool Send(IPC::Message* msg) OVERRIDE;
// blink::WebWidgetClient
- virtual void suppressCompositorScheduling(bool enable);
virtual void willBeginCompositorFrame();
virtual void didAutoResize(const blink::WebSize& new_size);
virtual void initializeLayerTreeView();
// Begins the compositor's scheduler to start producing frames.
void StartCompositor();
+ // Stop compositing.
+ void DestroyLayerTreeView();
+
// Called when a plugin is moved. These events are queued up and sent with
// the next paint or scroll message to the host.
void SchedulePluginMove(const WebPluginGeometry& move);
// active RenderWidgets.
void SetSwappedOut(bool is_swapped_out);
+ // Allows the process to exit once the unload handler has finished, if there
+ // are no other active RenderWidgets.
+ void WasSwappedOut();
+
void FlushPendingInputEventAck();
void DoDeferredClose();
void DoDeferredSetWindowRect(const blink::WebRect& pos);
// Resizes the render widget.
void Resize(const gfx::Size& new_size,
const gfx::Size& physical_backing_size,
- float overdraw_bottom_height,
+ float top_controls_layout_height,
const gfx::Size& visible_viewport_size,
const gfx::Rect& resizer_rect,
bool is_fullscreen,
virtual void OnWasHidden();
virtual void OnWasShown(bool needs_repainting,
const ui::LatencyInfo& latency_info);
- virtual void OnWasSwappedOut();
void OnCreateVideoAck(int32 video_id);
void OnUpdateVideoAck(int32 video_id);
void OnRequestMoveAck();
virtual void SetDeviceScaleFactor(float device_scale_factor);
virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile);
+ virtual void ResetDeviceColorProfileForTesting();
virtual void OnOrientationChange();
// The size of the view's backing surface in non-DPI-adjusted pixels.
gfx::Size physical_backing_size_;
- // The height of the physical backing surface that is overdrawn opaquely in
- // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels).
- float overdraw_bottom_height_;
+ // The amount that the viewport size given to Blink was shrunk by the URL-bar
+ // (always 0 on platforms where URL-bar hiding isn't supported).
+ float top_controls_layout_height_;
// The size of the visible viewport in DPI-adjusted pixels.
gfx::Size visible_viewport_size_;
// be sent, except for a Close.
bool closing_;
+ // True if it is known that the host is in the process of being shut down.
+ bool host_closing_;
+
// Whether this RenderWidget is currently swapped out, such that the view is
// being rendered by another process. If all RenderWidgets in a process are
// swapped out, the process can exit.