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_CHROMEOS_FRAME_NORMAL_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_NORMAL_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FRAME_NORMAL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FRAME_NORMAL_BROWSER_FRAME_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/views/frame/browser_frame.h" | 8 #include "chrome/browser/views/frame/browser_frame.h" |
9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" |
10 #include "chrome/browser/views/tab_icon_view.h" | 10 #include "chrome/browser/views/tab_icon_view.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 class NormalBrowserFrameView : public BrowserNonClientFrameView, | 27 class NormalBrowserFrameView : public BrowserNonClientFrameView, |
28 public TabIconView::TabIconViewModel { | 28 public TabIconView::TabIconViewModel { |
29 public: | 29 public: |
30 // Constructs a non-client view for an BrowserFrame. | 30 // Constructs a non-client view for an BrowserFrame. |
31 NormalBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 31 NormalBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
32 virtual ~NormalBrowserFrameView(); | 32 virtual ~NormalBrowserFrameView(); |
33 | 33 |
34 // Overridden from BrowserNonClientFrameView: | 34 // Overridden from BrowserNonClientFrameView: |
35 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; | 35 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; |
| 36 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; |
36 virtual void UpdateThrobber(bool running); | 37 virtual void UpdateThrobber(bool running); |
37 virtual gfx::Size GetMinimumSize(); | 38 virtual gfx::Size GetMinimumSize(); |
38 | 39 |
39 protected: | 40 protected: |
40 // Overridden from views::NonClientFrameView: | 41 // Overridden from views::NonClientFrameView: |
41 virtual gfx::Rect GetBoundsForClientView() const; | 42 virtual gfx::Rect GetBoundsForClientView() const; |
42 virtual bool AlwaysUseNativeFrame() const; | 43 virtual bool AlwaysUseNativeFrame() const; |
43 virtual gfx::Rect GetWindowBoundsForClientBounds( | 44 virtual gfx::Rect GetWindowBoundsForClientBounds( |
44 const gfx::Rect& client_bounds) const; | 45 const gfx::Rect& client_bounds) const; |
45 virtual int NonClientHitTest(const gfx::Point& point); | 46 virtual int NonClientHitTest(const gfx::Point& point); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 84 |
84 // The bounds of the ClientView. | 85 // The bounds of the ClientView. |
85 gfx::Rect client_view_bounds_; | 86 gfx::Rect client_view_bounds_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(NormalBrowserFrameView); | 88 DISALLOW_COPY_AND_ASSIGN(NormalBrowserFrameView); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace chromeos | 91 } // namespace chromeos |
91 | 92 |
92 #endif // CHROME_BROWSER_CHROMEOS_FRAME_NORMAL_BROWSER_FRAME_VIEW_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_FRAME_NORMAL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |