// Overridden from OverscrollControllerDelegate:
virtual gfx::Rect GetVisibleBounds() const OVERRIDE;
- virtual void OnOverscrollUpdate(float delta_x, float delta_y) OVERRIDE;
+ virtual bool OnOverscrollUpdate(float delta_x, float delta_y) OVERRIDE;
virtual void OnOverscrollComplete(OverscrollMode overscroll_mode) OVERRIDE;
virtual void OnOverscrollModeChange(OverscrollMode old_mode,
OverscrollMode new_mode) OVERRIDE;
virtual void OnWindowVisibilityChanged(aura::Window* window,
bool visible) OVERRIDE;
+ // Update the web contents visiblity.
+ void UpdateWebContentsVisibility(bool visible);
+
scoped_ptr<aura::Window> window_;
// The window that shows the screenshot of the history page during an
scoped_ptr<TouchEditableImplAura> touch_editable_;
scoped_ptr<GestureNavSimple> gesture_nav_simple_;
+ // On Windows we can run into problems if resources get released within the
+ // initialization phase while the content (and its dimensions) are not known.
+ bool is_or_was_visible_;
+
DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura);
};