| 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 AvatarMenuButton; |
| 11 class BrowserFrame; | 12 class BrowserFrame; |
| 12 class BrowserView; | 13 class BrowserView; |
| 13 | 14 |
| 14 // A specialization of the NonClientFrameView object that provides additional | 15 // A specialization of the NonClientFrameView object that provides additional |
| 15 // Browser-specific methods. | 16 // Browser-specific methods. |
| 16 class BrowserNonClientFrameView : public views::NonClientFrameView { | 17 class BrowserNonClientFrameView : public views::NonClientFrameView { |
| 17 public: | 18 public: |
| 18 BrowserNonClientFrameView() : NonClientFrameView() {} | 19 BrowserNonClientFrameView() : NonClientFrameView() {} |
| 19 virtual ~BrowserNonClientFrameView() {} | 20 virtual ~BrowserNonClientFrameView() {} |
| 20 | 21 |
| 21 // Returns the bounds within which the TabStrip should be laid out. | 22 // Returns the bounds within which the TabStrip should be laid out. |
| 22 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; | 23 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; |
| 23 | 24 |
| 24 // 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 |
| 25 // 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, |
| 26 // 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 |
| 27 // mode. This is used to correctly align theme images. | 28 // mode. This is used to correctly align theme images. |
| 28 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; | 29 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0; |
| 29 | 30 |
| 30 // Updates the throbber. | 31 // Updates the throbber. |
| 31 virtual void UpdateThrobber(bool running) = 0; | 32 virtual void UpdateThrobber(bool running) = 0; |
| 33 |
| 34 // Gets the avatar menu button. The button maybe NULL. |
| 35 virtual AvatarMenuButton* GetAvatarMenuButton() = 0; |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 namespace browser { | 38 namespace browser { |
| 35 | 39 |
| 36 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 40 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
| 37 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 41 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
| 38 BrowserFrame* frame, BrowserView* browser_view); | 42 BrowserFrame* frame, BrowserView* browser_view); |
| 39 | 43 |
| 40 } // browser | 44 } // browser |
| 41 | 45 |
| 42 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
| OLD | NEW |