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

Unified Diff: chrome/browser/ui/views/frame/top_container_view.h

Issue 13866026: Adds functionality to anchor widgets to the top-of-window views in immersive mode (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/top_container_view.h
diff --git a/chrome/browser/ui/views/frame/top_container_view.h b/chrome/browser/ui/views/frame/top_container_view.h
index c18162e9d5721385fce95eabc738c8b6e6420603..6d7bc496586de29daa22e208ae6bf618009688c8 100644
--- a/chrome/browser/ui/views/frame/top_container_view.h
+++ b/chrome/browser/ui/views/frame/top_container_view.h
@@ -20,9 +20,16 @@ class TopContainerView : public views::View {
explicit TopContainerView(BrowserView* browser_view);
virtual ~TopContainerView();
+ // If the view is animating its bounds, returns the target bounds. Otheriwse,
+ // returns the view's bounds.
+ // TODO(pkotwicz): Investigate if GetBoundsInScreen() can return the view's
+ // target bounds.
+ gfx::Rect GetTargetBoundsInScreen() const;
+
// views::View overrides:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual std::string GetClassName() const OVERRIDE;
+ virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE;
virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE;
private:

Powered by Google App Engine
This is Rietveld 408576698