| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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_GLASS_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/views/frame/browser_frame_win.h" | 8 #include "chrome/browser/views/frame/browser_frame_win.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 "views/controls/button/button.h" | 10 #include "views/controls/button/button.h" |
| 11 #include "views/window/non_client_view.h" | 11 #include "views/window/non_client_view.h" |
| 12 | 12 |
| 13 class BrowserView; | 13 class BrowserView; |
| 14 class SkBitmap; | 14 class SkBitmap; |
| 15 | 15 |
| 16 class GlassBrowserFrameView : public BrowserNonClientFrameView { | 16 class GlassBrowserFrameView : public BrowserNonClientFrameView { |
| 17 public: | 17 public: |
| 18 // Constructs a non-client view for an BrowserFrame. | 18 // Constructs a non-client view for an BrowserFrame. |
| 19 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 19 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
| 20 virtual ~GlassBrowserFrameView(); | 20 virtual ~GlassBrowserFrameView(); |
| 21 | 21 |
| 22 // Overridden from BrowserNonClientFrameView: | 22 // Overridden from BrowserNonClientFrameView: |
| 23 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; | 23 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; |
| 24 virtual void UpdateThrobber(bool running); | 24 virtual void UpdateThrobber(bool running); |
| 25 | 25 |
| 26 // Overridden from views::NonClientFrameView: | 26 // Overridden from views::NonClientFrameView: |
| 27 virtual gfx::Rect GetBoundsForClientView() const; | 27 virtual gfx::Rect GetBoundsForClientView() const; |
| 28 virtual bool AlwaysUseNativeFrame() const; | 28 virtual bool AlwaysUseNativeFrame() const; |
| 29 virtual gfx::Rect GetWindowBoundsForClientBounds( | 29 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 30 const gfx::Rect& client_bounds) const; | 30 const gfx::Rect& client_bounds) const; |
| 31 virtual gfx::Point GetSystemMenuPoint() const; | |
| 32 virtual int NonClientHitTest(const gfx::Point& point); | 31 virtual int NonClientHitTest(const gfx::Point& point); |
| 33 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) { } | 32 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) { } |
| 34 virtual void EnableClose(bool enable) { } | 33 virtual void EnableClose(bool enable) { } |
| 35 virtual void ResetWindowControls() { } | 34 virtual void ResetWindowControls() { } |
| 36 | 35 |
| 37 protected: | 36 protected: |
| 38 // Overridden from views::View: | 37 // Overridden from views::View: |
| 39 virtual void Paint(gfx::Canvas* canvas); | 38 virtual void Paint(gfx::Canvas* canvas); |
| 40 virtual void Layout(); | 39 virtual void Layout(); |
| 41 | 40 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 static SkBitmap* distributor_logo_; | 97 static SkBitmap* distributor_logo_; |
| 99 | 98 |
| 100 static const int kThrobberIconCount = 24; | 99 static const int kThrobberIconCount = 24; |
| 101 static HICON throbber_icons_[kThrobberIconCount]; | 100 static HICON throbber_icons_[kThrobberIconCount]; |
| 102 static void InitThrobberIcons(); | 101 static void InitThrobberIcons(); |
| 103 | 102 |
| 104 DISALLOW_EVIL_CONSTRUCTORS(GlassBrowserFrameView); | 103 DISALLOW_EVIL_CONSTRUCTORS(GlassBrowserFrameView); |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 #endif // CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 106 #endif // CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |