// updates. This function makes sure that the screenshot window is stacked
// on top, so that it hides the content window behind it, and destroys the
// screenshot window when the page is done loading/painting.
+ // This should be called immediately after initiating the navigation,
+ // otherwise the overlay may be dismissed prematurely.
void StartObserving();
// Sets the screenshot window and the delegate. This takes ownership of
virtual void OnWindowSliderDestroyed() OVERRIDE;
// Overridden from WebContentsObserver:
- virtual void DocumentOnLoadCompletedInMainFrame(int32 page_id) OVERRIDE;
- virtual void DidFirstVisuallyNonEmptyPaint(int32 page_id) OVERRIDE;
+ virtual void DocumentOnLoadCompletedInMainFrame() OVERRIDE;
+ virtual void DidFirstVisuallyNonEmptyPaint() OVERRIDE;
virtual void DidStopLoading(RenderViewHost* host) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;