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_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual ~BrowserFrameWin(); | 30 virtual ~BrowserFrameWin(); |
31 | 31 |
32 // This initialization function must be called after construction, it is | 32 // This initialization function must be called after construction, it is |
33 // separate to avoid recursive calling of the frame from its constructor. | 33 // separate to avoid recursive calling of the frame from its constructor. |
34 void Init(); | 34 void Init(); |
35 | 35 |
36 BrowserView* browser_view() const { return browser_view_; } | 36 BrowserView* browser_view() const { return browser_view_; } |
37 | 37 |
38 // BrowserFrame implementation. | 38 // BrowserFrame implementation. |
39 virtual views::Window* GetWindow(); | 39 virtual views::Window* GetWindow(); |
40 virtual void TabStripCreated(BaseTabStrip* tabstrip); | |
41 virtual int GetMinimizeButtonOffset() const; | 40 virtual int GetMinimizeButtonOffset() const; |
42 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; | 41 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* 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 virtual bool AlwaysUseNativeFrame() const; | 45 virtual bool AlwaysUseNativeFrame() const; |
47 virtual views::View* GetFrameView() const; | 46 virtual views::View* GetFrameView() const; |
48 virtual void PaintTabStripShadow(gfx::Canvas* canvas); | 47 virtual void PaintTabStripShadow(gfx::Canvas* canvas); |
| 48 virtual void TabStripDisplayModeChanged(); |
49 | 49 |
50 protected: | 50 protected: |
51 // Overridden from views::WindowWin: | 51 // Overridden from views::WindowWin: |
52 virtual gfx::Insets GetClientAreaInsets() const; | 52 virtual gfx::Insets GetClientAreaInsets() const; |
53 virtual bool GetAccelerator(int cmd_id, menus::Accelerator* accelerator); | 53 virtual bool GetAccelerator(int cmd_id, menus::Accelerator* accelerator); |
54 virtual void OnEndSession(BOOL ending, UINT logoff); | 54 virtual void OnEndSession(BOOL ending, UINT logoff); |
55 virtual void OnEnterSizeMove(); | 55 virtual void OnEnterSizeMove(); |
56 virtual void OnExitSizeMove(); | 56 virtual void OnExitSizeMove(); |
57 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); | 57 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); |
58 virtual LRESULT OnMouseActivate(HWND window, | 58 virtual LRESULT OnMouseActivate(HWND window, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 BrowserRootView* root_view_; | 90 BrowserRootView* root_view_; |
91 | 91 |
92 bool frame_initialized_; | 92 bool frame_initialized_; |
93 | 93 |
94 Profile* profile_; | 94 Profile* profile_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); | 96 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 99 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
OLD | NEW |