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_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/views/frame/browser_frame.h" | 9 #include "chrome/browser/views/frame/browser_frame.h" |
| 10 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" | 10 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 31 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
| 32 virtual ~OpaqueBrowserFrameView(); | 32 virtual ~OpaqueBrowserFrameView(); |
| 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 int GetHorizontalTabStripVerticalOffset(bool restored) const; |
| 37 virtual void UpdateThrobber(bool running); | 37 virtual void UpdateThrobber(bool running); |
| 38 virtual gfx::Size GetMinimumSize(); | 38 virtual gfx::Size GetMinimumSize(); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 BrowserView* GetBrowserView() const { return browser_view_; } | |
|
sky
2010/12/09 22:19:03
Inlined methods should be unix_hacker_style.
bryeung
2010/12/10 17:23:19
Done.
| |
| 42 gfx::Rect* client_view_bounds() { return &client_view_bounds_; } | |
| 43 | |
| 41 // Overridden from views::NonClientFrameView: | 44 // Overridden from views::NonClientFrameView: |
| 42 virtual gfx::Rect GetBoundsForClientView() const; | 45 virtual gfx::Rect GetBoundsForClientView() const; |
| 43 virtual bool AlwaysUseNativeFrame() const; | 46 virtual bool AlwaysUseNativeFrame() const; |
| 44 virtual bool AlwaysUseCustomFrame() const; | 47 virtual bool AlwaysUseCustomFrame() const; |
| 45 virtual gfx::Rect GetWindowBoundsForClientBounds( | 48 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 46 const gfx::Rect& client_bounds) const; | 49 const gfx::Rect& client_bounds) const; |
| 47 virtual int NonClientHitTest(const gfx::Point& point); | 50 virtual int NonClientHitTest(const gfx::Point& point); |
| 48 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); | 51 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); |
| 49 virtual void EnableClose(bool enable); | 52 virtual void EnableClose(bool enable); |
| 50 virtual void ResetWindowControls(); | 53 virtual void ResetWindowControls(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 // The BrowserView hosted within this View. | 142 // The BrowserView hosted within this View. |
| 140 BrowserView* browser_view_; | 143 BrowserView* browser_view_; |
| 141 | 144 |
| 142 // The bounds of the ClientView. | 145 // The bounds of the ClientView. |
| 143 gfx::Rect client_view_bounds_; | 146 gfx::Rect client_view_bounds_; |
| 144 | 147 |
| 145 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 148 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
| 146 }; | 149 }; |
| 147 | 150 |
| 148 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 151 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |