| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "views/window/non_client_view.h" | 9 #include "views/window/non_client_view.h" |
| 10 | 10 |
| 11 class BaseTabStrip; | 11 class BaseTabStrip; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 42 virtual views::Window* GetWindow() = 0; | 42 virtual views::Window* GetWindow() = 0; |
| 43 | 43 |
| 44 // Determine the distance of the left edge of the minimize button from the | 44 // Determine the distance of the left edge of the minimize button from the |
| 45 // left edge of the window. Used in our Non-Client View's Layout. | 45 // left edge of the window. Used in our Non-Client View's Layout. |
| 46 virtual int GetMinimizeButtonOffset() const = 0; | 46 virtual int GetMinimizeButtonOffset() const = 0; |
| 47 | 47 |
| 48 // Retrieves the bounds, in non-client view coordinates for the specified | 48 // Retrieves the bounds, in non-client view coordinates for the specified |
| 49 // TabStrip. | 49 // TabStrip. |
| 50 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; | 50 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; |
| 51 | 51 |
| 52 // Returns the y coordinate within the window at which the horizontal TabStrip |
| 53 // begins (or would begin). If |restored| is true, this is calculated as if |
| 54 // we were in restored mode regardless of the current mode. |
| 55 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; |
| 56 |
| 52 // Tells the frame to update the throbber. | 57 // Tells the frame to update the throbber. |
| 53 virtual void UpdateThrobber(bool running) = 0; | 58 virtual void UpdateThrobber(bool running) = 0; |
| 54 | 59 |
| 55 // Tells the frame to continue a drag detached tab operation. | 60 // Tells the frame to continue a drag detached tab operation. |
| 56 virtual void ContinueDraggingDetachedTab() = 0; | 61 virtual void ContinueDraggingDetachedTab() = 0; |
| 57 | 62 |
| 58 // Returns the theme provider for this frame. | 63 // Returns the theme provider for this frame. |
| 59 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; | 64 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; |
| 60 | 65 |
| 61 // Returns true if the window should use the native frame view. This is true | 66 // Returns true if the window should use the native frame view. This is true |
| 62 // if there are no themes applied on Vista, or if there are themes applied and | 67 // if there are no themes applied on Vista, or if there are themes applied and |
| 63 // this browser window is an app or popup. | 68 // this browser window is an app or popup. |
| 64 virtual bool AlwaysUseNativeFrame() const = 0; | 69 virtual bool AlwaysUseNativeFrame() const = 0; |
| 65 | 70 |
| 66 // Returns the NonClientFrameView of this frame. | 71 // Returns the NonClientFrameView of this frame. |
| 67 virtual views::View* GetFrameView() const = 0; | 72 virtual views::View* GetFrameView() const = 0; |
| 68 | 73 |
| 69 // Notifies the frame that the tab strip display mode changed so it can update | 74 // Notifies the frame that the tab strip display mode changed so it can update |
| 70 // its frame treatment if necessary. | 75 // its frame treatment if necessary. |
| 71 virtual void TabStripDisplayModeChanged() = 0; | 76 virtual void TabStripDisplayModeChanged() = 0; |
| 72 }; | 77 }; |
| 73 | 78 |
| 74 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ | 79 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |