OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_AERO_GLASS_FRAME_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_FRAME_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_FRAME_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_FRAME_H_ |
7 | 7 |
8 #include "chrome/browser/views/frame/browser_frame.h" | 8 #include "chrome/browser/views/frame/browser_frame.h" |
9 #include "chrome/views/window.h" | 9 #include "chrome/views/window.h" |
10 | 10 |
11 class AeroGlassNonClientView; | 11 class AeroGlassNonClientView; |
12 class BrowserView; | 12 class BrowserView; |
13 | 13 |
14 /////////////////////////////////////////////////////////////////////////////// | 14 /////////////////////////////////////////////////////////////////////////////// |
15 // AeroGlassFrame | 15 // AeroGlassFrame |
16 // | 16 // |
17 // AeroGlassFrame is a Window subclass that provides the window frame on | 17 // AeroGlassFrame is a Window subclass that provides the window frame on |
18 // Windows Vista with DWM desktop compositing enabled. The window's non-client | 18 // Windows Vista with DWM desktop compositing enabled. The window's non-client |
19 // areas are drawn by the system. | 19 // areas are drawn by the system. |
20 // | 20 // |
21 class AeroGlassFrame : public BrowserFrame, | 21 class AeroGlassFrame : public BrowserFrame, |
22 public views::Window { | 22 public views::Window { |
23 public: | 23 public: |
24 explicit AeroGlassFrame(BrowserView* browser_view); | 24 explicit AeroGlassFrame(BrowserView* browser_view); |
25 virtual ~AeroGlassFrame(); | 25 virtual ~AeroGlassFrame(); |
26 | 26 |
27 void Init(); | 27 void Init(); |
28 | 28 |
29 // Determine the distance of the left edge of the minimize button from the | 29 // Determine the distance of the left edge of the minimize button from the |
30 // right edge of the window. Used in our Non-Client View's Layout. | 30 // left edge of the window. Used in our Non-Client View's Layout. |
31 int GetMinimizeButtonOffset() const; | 31 int GetMinimizeButtonOffset() const; |
32 | 32 |
33 // Overridden from BrowserFrame: | 33 // Overridden from BrowserFrame: |
34 virtual gfx::Rect GetWindowBoundsForClientBounds( | 34 virtual gfx::Rect GetWindowBoundsForClientBounds( |
35 const gfx::Rect& client_bounds); | 35 const gfx::Rect& client_bounds); |
36 virtual void SizeToContents(const gfx::Rect& contents_bounds) {} | 36 virtual void SizeToContents(const gfx::Rect& contents_bounds) {} |
37 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; | 37 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; |
38 virtual void UpdateThrobber(bool running); | 38 virtual void UpdateThrobber(bool running); |
39 virtual views::Window* GetWindow(); | 39 virtual views::Window* GetWindow(); |
40 | 40 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 static const int kThrobberIconCount = 24; | 85 static const int kThrobberIconCount = 24; |
86 static HICON throbber_icons_[kThrobberIconCount]; | 86 static HICON throbber_icons_[kThrobberIconCount]; |
87 static void InitThrobberIcons(); | 87 static void InitThrobberIcons(); |
88 | 88 |
89 DISALLOW_EVIL_CONSTRUCTORS(AeroGlassFrame); | 89 DISALLOW_EVIL_CONSTRUCTORS(AeroGlassFrame); |
90 }; | 90 }; |
91 | 91 |
92 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_FRAME_H_ | 92 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_FRAME_H_ |
93 | 93 |
OLD | NEW |