| 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 25 matching lines...) Expand all  Loading... | 
| 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* browser_view() const { return browser_view_; } | 41   BrowserView* browser_view() const { return browser_view_; } | 
| 42 | 42 | 
| 43   // Used to allow subclasses to reserve height for other components they | 43   // Used to allow subclasses to reserve height for other components they | 
| 44   // will add.  The space is reserved below the ClientView. | 44   // will add.  The space is reserved below the ClientView. | 
| 45   virtual int GetReservedHeight() const; | 45   virtual int GetReservedHeight() const; | 
|  | 46   virtual gfx::Rect GetBoundsForReservedArea() const; | 
| 46 | 47 | 
| 47   // Overridden from views::NonClientFrameView: | 48   // Overridden from views::NonClientFrameView: | 
| 48   virtual gfx::Rect GetBoundsForClientView() const; | 49   virtual gfx::Rect GetBoundsForClientView() const; | 
| 49   virtual bool AlwaysUseNativeFrame() const; | 50   virtual bool AlwaysUseNativeFrame() const; | 
| 50   virtual bool AlwaysUseCustomFrame() const; | 51   virtual bool AlwaysUseCustomFrame() const; | 
| 51   virtual gfx::Rect GetWindowBoundsForClientBounds( | 52   virtual gfx::Rect GetWindowBoundsForClientBounds( | 
| 52       const gfx::Rect& client_bounds) const; | 53       const gfx::Rect& client_bounds) const; | 
| 53   virtual int NonClientHitTest(const gfx::Point& point); | 54   virtual int NonClientHitTest(const gfx::Point& point); | 
| 54   virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); | 55   virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); | 
| 55   virtual void EnableClose(bool enable); | 56   virtual void EnableClose(bool enable); | 
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 145   // The BrowserView hosted within this View. | 146   // The BrowserView hosted within this View. | 
| 146   BrowserView* browser_view_; | 147   BrowserView* browser_view_; | 
| 147 | 148 | 
| 148   // The bounds of the ClientView. | 149   // The bounds of the ClientView. | 
| 149   gfx::Rect client_view_bounds_; | 150   gfx::Rect client_view_bounds_; | 
| 150 | 151 | 
| 151   DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 152   DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 
| 152 }; | 153 }; | 
| 153 | 154 | 
| 154 #endif  // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 155 #endif  // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 
| OLD | NEW | 
|---|