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

Side by Side Diff: chrome/browser/views/tabs/tab_overview_container.h

Issue 126185: Improved tab overview animations with better animation and wiring to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_OVERVIEW_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_OVERVIEW_CONTAINER_H_
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_OVERVIEW_CONTAINER_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_OVERVIEW_CONTAINER_H_
7 7
8 #include "views/view.h" 8 #include "views/view.h"
9 9
10 class TabOverviewGrid; 10 class TabOverviewGrid;
11 11
12 // TabOverviewContainer contains TabOverviewGrid. TabOverviewContainer provides 12 // TabOverviewContainer contains TabOverviewGrid. TabOverviewContainer provides
13 // padding around the grid as well as maintaining a shape on the containing 13 // padding around the grid as well as maintaining a shape on the containing
14 // widget. 14 // widget.
15 class TabOverviewContainer : public views::View { 15 class TabOverviewContainer : public views::View {
16 public: 16 public:
17 TabOverviewContainer(); 17 TabOverviewContainer();
18 virtual ~TabOverviewContainer(); 18 virtual ~TabOverviewContainer();
19 19
20 // Sets the max size. This ends up being passed down to the grid after 20 // Sets the max size. This ends up being passed down to the grid after
21 // adjusting for our borders. 21 // adjusting for our borders.
22 void SetMaxSize(const gfx::Size& max_size); 22 void SetMaxSize(const gfx::Size& max_size);
23 23
24 // Updates the shape on the containing widget. 24 // Updates the shape on the containing widget. |horizontal_center| gives the
25 void UpdateWidgetShape(int width, int height); 25 // center of the window the parent window we're contained in is centered
26 // over.
27 void UpdateWidgetShape(int horizontal_center, int width, int height);
26 28
27 // View overrides. 29 // View overrides.
28 virtual gfx::Size GetPreferredSize(); 30 virtual gfx::Size GetPreferredSize();
29 virtual void Layout(); 31 virtual void Layout();
30 virtual void Paint(gfx::Canvas* canvas); 32 virtual void Paint(gfx::Canvas* canvas);
31 virtual void DidChangeBounds(const gfx::Rect& previous, 33 virtual void DidChangeBounds(const gfx::Rect& previous,
32 const gfx::Rect& current); 34 const gfx::Rect& current);
33 35
34 private: 36 private:
35 TabOverviewGrid* GetTabOverviewGrid(); 37 TabOverviewGrid* GetTabOverviewGrid();
36 38
37 DISALLOW_COPY_AND_ASSIGN(TabOverviewContainer); 39 DISALLOW_COPY_AND_ASSIGN(TabOverviewContainer);
38 }; 40 };
39 41
40 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_OVERVIEW_CONTAINER_H_ 42 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_OVERVIEW_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698