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_BROWSER_FRAME_WIN_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/views/frame/browser_frame.h" | 9 #include "chrome/browser/views/frame/browser_frame.h" |
10 #include "views/window/window_win.h" | 10 #include "views/window/window_win.h" |
11 | 11 |
12 class AeroGlassNonClientView; | 12 class AeroGlassNonClientView; |
13 class BrowserNonClientFrameView; | 13 class BrowserNonClientFrameView; |
14 class BrowserRootView; | 14 class BrowserRootView; |
15 class BrowserTabStrip; | 15 class BrowserTabStrip; |
16 class BrowserView; | 16 class BrowserView; |
17 class NonClientFrameView; | 17 class NonClientFrameView; |
18 class Profile; | 18 class Profile; |
19 class TabStrip; | |
20 | 19 |
21 /////////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////////// |
22 // BrowserFrameWin | 21 // BrowserFrameWin |
23 // | 22 // |
24 // BrowserFrame is a WindowWin subclass that provides the window frame for the | 23 // BrowserFrame is a WindowWin subclass that provides the window frame for the |
25 // Chrome browser window. | 24 // Chrome browser window. |
26 // | 25 // |
27 class BrowserFrameWin : public BrowserFrame, public views::WindowWin { | 26 class BrowserFrameWin : public BrowserFrame, public views::WindowWin { |
28 public: | 27 public: |
29 // Normally you will create this class by calling BrowserFrame::Create. | 28 // Normally you will create this class by calling BrowserFrame::Create. |
30 // Init must be called before using this class, which Create will do for you. | 29 // Init must be called before using this class, which Create will do for you. |
31 BrowserFrameWin(BrowserView* browser_view, Profile* profile); | 30 BrowserFrameWin(BrowserView* browser_view, Profile* profile); |
32 virtual ~BrowserFrameWin(); | 31 virtual ~BrowserFrameWin(); |
33 | 32 |
34 // This initialization function must be called after construction, it is | 33 // This initialization function must be called after construction, it is |
35 // separate to avoid recursive calling of the frame from its constructor. | 34 // separate to avoid recursive calling of the frame from its constructor. |
36 void Init(); | 35 void Init(); |
37 | 36 |
38 // BrowserFrame implementation. | 37 // BrowserFrame implementation. |
39 virtual views::Window* GetWindow(); | 38 virtual views::Window* GetWindow(); |
40 virtual void TabStripCreated(TabStrip* tabstrip); | 39 virtual void TabStripCreated(TabStripWrapper* tabstrip); |
41 virtual int GetMinimizeButtonOffset() const; | 40 virtual int GetMinimizeButtonOffset() const; |
42 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; | 41 virtual gfx::Rect GetBoundsForTabStrip(TabStripWrapper* tabstrip) const; |
43 virtual void UpdateThrobber(bool running); | 42 virtual void UpdateThrobber(bool running); |
44 virtual void ContinueDraggingDetachedTab(); | 43 virtual void ContinueDraggingDetachedTab(); |
45 virtual ThemeProvider* GetThemeProviderForFrame() const; | 44 virtual ThemeProvider* GetThemeProviderForFrame() const; |
46 | 45 |
47 // Overridden from views::Widget. | 46 // Overridden from views::Widget. |
48 virtual ThemeProvider* GetThemeProvider() const; | 47 virtual ThemeProvider* GetThemeProvider() const; |
49 virtual ThemeProvider* GetDefaultThemeProvider() const; | 48 virtual ThemeProvider* GetDefaultThemeProvider() const; |
50 | 49 |
51 BrowserView* browser_view() const { return browser_view_; } | 50 BrowserView* browser_view() const { return browser_view_; } |
52 | 51 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 107 |
109 // When this frame represents a detached tab being dragged, this is a TabStrip | 108 // When this frame represents a detached tab being dragged, this is a TabStrip |
110 // in another window that the tab being dragged would be docked to if the | 109 // in another window that the tab being dragged would be docked to if the |
111 // mouse were released, or NULL if there is no suitable TabStrip. | 110 // mouse were released, or NULL if there is no suitable TabStrip. |
112 BrowserTabStrip* drop_tabstrip_; | 111 BrowserTabStrip* drop_tabstrip_; |
113 | 112 |
114 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); | 113 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
115 }; | 114 }; |
116 | 115 |
117 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ | 116 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ |
OLD | NEW |