Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 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_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "views/window/non_client_view.h" | 9 #include "views/window/non_client_view.h" |
| 10 | 10 |
| 11 class BaseTabStrip; | 11 class BaseTabStrip; |
| 12 class BrowserFrame; | |
| 13 class BrowserView; | |
| 12 | 14 |
| 13 // A specialization of the NonClientFrameView object that provides additional | 15 // A specialization of the NonClientFrameView object that provides additional |
| 14 // Browser-specific methods. | 16 // Browser-specific methods. |
| 15 class BrowserNonClientFrameView : public views::NonClientFrameView { | 17 class BrowserNonClientFrameView : public views::NonClientFrameView { |
| 16 public: | 18 public: |
| 17 BrowserNonClientFrameView() : NonClientFrameView() {} | 19 BrowserNonClientFrameView() : NonClientFrameView() {} |
| 18 virtual ~BrowserNonClientFrameView() {} | 20 virtual ~BrowserNonClientFrameView() {} |
| 19 | 21 |
| 20 // Returns the bounds within which the TabStrip should be laid out. | 22 // Returns the bounds within which the TabStrip should be laid out. |
| 21 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; | 23 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; |
| 22 | 24 |
| 23 // Returns the y coordinate within the window at which the horizontal TabStrip | 25 // Returns the y coordinate within the window at which the horizontal TabStrip |
| 24 // begins, or (in vertical tabs mode) would begin. If |restored| is true, | 26 // begins, or (in vertical tabs mode) would begin. If |restored| is true, |
| 25 // this is calculated as if we were in restored mode regardless of the current | 27 // this is calculated as if we were in restored mode regardless of the current |
| 26 // mode. This is used to correctly align theme images. | 28 // mode. This is used to correctly align theme images. |
| 27 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; | 29 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; |
| 28 | 30 |
| 29 // Updates the throbber. | 31 // Updates the throbber. |
| 30 virtual void UpdateThrobber(bool running) = 0; | 32 virtual void UpdateThrobber(bool running) = 0; |
| 31 }; | 33 }; |
| 32 | 34 |
| 35 namespace browser { | |
| 36 | |
| 37 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | |
| 38 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | |
| 39 bool is_popup, BrowserFrame* frame, BrowserView* browser_view); | |
|
sky
2010/12/10 18:18:20
Since you're passing in the browserview can we nuk
bryeung
2010/12/10 23:58:59
Yes, I think you're right about is_popup.
For the
| |
| 40 | |
| 41 } // browser | |
| 42 | |
| 33 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 43 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
| OLD | NEW |