| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_FRAME_BROWSER_FRAME_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 7 | 7 |
| 8 class BrowserView; | 8 class BrowserView; |
| 9 namespace views { | 9 namespace views { |
| 10 class Window; | 10 class Window; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // TODO(beng): We should _not_ have to expose this method here... it's only | 26 // TODO(beng): We should _not_ have to expose this method here... it's only |
| 27 // because BrowserView needs it to implement BrowserWindow | 27 // because BrowserView needs it to implement BrowserWindow |
| 28 // because we're doing popup setup in browser.cc when we | 28 // because we're doing popup setup in browser.cc when we |
| 29 // shouldn't be... | 29 // shouldn't be... |
| 30 virtual gfx::Rect GetWindowBoundsForClientBounds( | 30 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 31 const gfx::Rect& client_bounds) = 0; | 31 const gfx::Rect& client_bounds) = 0; |
| 32 | 32 |
| 33 // Sizes the frame assuming the contents view's bounds are as specified. | 33 // Sizes the frame assuming the contents view's bounds are as specified. |
| 34 virtual void SizeToContents(const gfx::Rect& contents_bounds) = 0; | 34 virtual void SizeToContents(const gfx::Rect& contents_bounds) = 0; |
| 35 | 35 |
| 36 // Returns the bounds that should be used to size and position the specified | 36 // Retrieve the bounds for the specified |tabstrip|, in window coordinates. |
| 37 // TabStrip. The coordinate system is that of the window's client area. | |
| 38 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const = 0; | 37 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const = 0; |
| 39 | 38 |
| 40 // Updates the current frame of the Throbber animation, if applicable. | 39 // Updates the current frame of the Throbber animation, if applicable. |
| 41 // |running| is whether or not the throbber should be running. | 40 // |running| is whether or not the throbber should be running. |
| 42 virtual void UpdateThrobber(bool running) = 0; | 41 virtual void UpdateThrobber(bool running) = 0; |
| 43 | 42 |
| 44 // Returns the views::Window associated with this frame. | 43 // Returns the views::Window associated with this frame. |
| 45 virtual views::Window* GetWindow() = 0; | 44 virtual views::Window* GetWindow() = 0; |
| 46 | 45 |
| 47 enum FrameType { | 46 enum FrameType { |
| 48 FRAMETYPE_OPAQUE, | 47 FRAMETYPE_OPAQUE, |
| 49 FRAMETYPE_AERO_GLASS | 48 FRAMETYPE_AERO_GLASS |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 // Returns the FrameType that should be constructed given the current system | 51 // Returns the FrameType that should be constructed given the current system |
| 53 // settings. | 52 // settings. |
| 54 static FrameType GetActiveFrameType(); | 53 static FrameType GetActiveFrameType(); |
| 55 | 54 |
| 56 // Creates a BrowserFrame instance for the specified FrameType and | 55 // Creates a BrowserFrame instance for the specified FrameType and |
| 57 // BrowserView. | 56 // BrowserView. |
| 58 static BrowserFrame* CreateForBrowserView(FrameType type, | 57 static BrowserFrame* CreateForBrowserView(FrameType type, |
| 59 BrowserView* browser_view); | 58 BrowserView* browser_view); |
| 60 | 59 |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ | 62 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 64 | 63 |
| OLD | NEW |