| 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_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_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 22 matching lines...) Expand all Loading... |
| 33 // Overridden from BrowserNonClientFrameView: | 33 // Overridden from BrowserNonClientFrameView: |
| 34 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; | 34 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; |
| 35 virtual void UpdateThrobber(bool running); | 35 virtual void UpdateThrobber(bool running); |
| 36 virtual gfx::Size GetMinimumSize(); | 36 virtual gfx::Size GetMinimumSize(); |
| 37 virtual void PaintTabStripShadow(gfx::Canvas* canvas); | 37 virtual void PaintTabStripShadow(gfx::Canvas* canvas); |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 // Overridden from views::NonClientFrameView: | 40 // Overridden from views::NonClientFrameView: |
| 41 virtual gfx::Rect GetBoundsForClientView() const; | 41 virtual gfx::Rect GetBoundsForClientView() const; |
| 42 virtual bool AlwaysUseNativeFrame() const; | 42 virtual bool AlwaysUseNativeFrame() const; |
| 43 virtual bool AlwaysUseCustomFrame() 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); |
| 46 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); | 47 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); |
| 47 virtual void EnableClose(bool enable); | 48 virtual void EnableClose(bool enable); |
| 48 virtual void ResetWindowControls(); | 49 virtual void ResetWindowControls(); |
| 49 | 50 |
| 50 // Overridden from views::View: | 51 // Overridden from views::View: |
| 51 virtual void Paint(gfx::Canvas* canvas); | 52 virtual void Paint(gfx::Canvas* canvas); |
| 52 virtual void Layout(); | 53 virtual void Layout(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // The BrowserView hosted within this View. | 131 // The BrowserView hosted within this View. |
| 131 BrowserView* browser_view_; | 132 BrowserView* browser_view_; |
| 132 | 133 |
| 133 // The bounds of the ClientView. | 134 // The bounds of the ClientView. |
| 134 gfx::Rect client_view_bounds_; | 135 gfx::Rect client_view_bounds_; |
| 135 | 136 |
| 136 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView); | 137 DISALLOW_EVIL_CONSTRUCTORS(OpaqueBrowserFrameView); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 #endif // CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 140 #endif // CHROME_BROWSER_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |