OLD | NEW |
1 // Copyright (c) 2009 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_NON_CLIENT_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
7 | 7 |
8 #include "views/window/non_client_view.h" | 8 #include "views/window/non_client_view.h" |
9 | 9 |
10 class BaseTabStrip; | 10 class BaseTabStrip; |
11 | 11 |
12 // A specialization of the NonClientFrameView object that provides additional | 12 // A specialization of the NonClientFrameView object that provides additional |
13 // Browser-specific methods. | 13 // Browser-specific methods. |
14 class BrowserNonClientFrameView : public views::NonClientFrameView { | 14 class BrowserNonClientFrameView : public views::NonClientFrameView { |
15 public: | 15 public: |
16 BrowserNonClientFrameView() : NonClientFrameView() {} | 16 BrowserNonClientFrameView() : NonClientFrameView() {} |
17 virtual ~BrowserNonClientFrameView() {} | 17 virtual ~BrowserNonClientFrameView() {} |
18 | 18 |
19 // Returns the bounds within which the TabStrip should be laid out. | 19 // Returns the bounds within which the TabStrip should be laid out. |
20 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; | 20 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; |
21 | 21 |
| 22 // Returns the y coordinate within the window at which the horizontal TabStrip |
| 23 // begins, or (in vertical tabs mode) would begin. If |restored| is true, |
| 24 // this is calculated as if we were in restored mode regardless of the current |
| 25 // mode. This is used to correctly align theme images. |
| 26 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; |
| 27 |
22 // Updates the throbber. | 28 // Updates the throbber. |
23 virtual void UpdateThrobber(bool running) = 0; | 29 virtual void UpdateThrobber(bool running) = 0; |
24 }; | 30 }; |
25 | 31 |
26 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 32 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |