OLD | NEW |
1 // Copyright (c) 2009 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_BROWSER_FRAME_GTK_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/views/frame/browser_frame.h" | 10 #include "chrome/browser/views/frame/browser_frame.h" |
11 #include "views/window/window_gtk.h" | 11 #include "views/window/window_gtk.h" |
(...skipping 12 matching lines...) Expand all Loading... |
24 // Creates a frame view and initializes the window. This | 24 // Creates a frame view and initializes the window. This |
25 // initialization function must be called after construction, it is | 25 // initialization function must be called after construction, it is |
26 // separate to avoid recursive calling of the frame from its | 26 // separate to avoid recursive calling of the frame from its |
27 // constructor. | 27 // constructor. |
28 virtual void Init(); | 28 virtual void Init(); |
29 | 29 |
30 // Overridden from BrowserFrame: | 30 // Overridden from BrowserFrame: |
31 virtual views::Window* GetWindow(); | 31 virtual views::Window* GetWindow(); |
32 virtual int GetMinimizeButtonOffset() const; | 32 virtual int GetMinimizeButtonOffset() const; |
33 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; | 33 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; |
| 34 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; |
34 virtual void UpdateThrobber(bool running); | 35 virtual void UpdateThrobber(bool running); |
35 virtual void ContinueDraggingDetachedTab(); | 36 virtual void ContinueDraggingDetachedTab(); |
36 virtual ThemeProvider* GetThemeProviderForFrame() const; | 37 virtual ThemeProvider* GetThemeProviderForFrame() const; |
37 virtual bool AlwaysUseNativeFrame() const; | 38 virtual bool AlwaysUseNativeFrame() const; |
38 virtual views::View* GetFrameView() const; | 39 virtual views::View* GetFrameView() const; |
39 virtual void TabStripDisplayModeChanged(); | 40 virtual void TabStripDisplayModeChanged(); |
40 | 41 |
41 // Overridden from views::Widget: | 42 // Overridden from views::Widget: |
42 virtual ThemeProvider* GetThemeProvider() const; | 43 virtual ThemeProvider* GetThemeProvider() const; |
43 virtual ThemeProvider* GetDefaultThemeProvider() const; | 44 virtual ThemeProvider* GetDefaultThemeProvider() const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // a copy as a BrowserRootView to avoid evil casting later, when we need to | 76 // a copy as a BrowserRootView to avoid evil casting later, when we need to |
76 // call functions that only exist on BrowserRootView (versus RootView). | 77 // call functions that only exist on BrowserRootView (versus RootView). |
77 BrowserRootView* root_view_; | 78 BrowserRootView* root_view_; |
78 | 79 |
79 Profile* profile_; | 80 Profile* profile_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); | 82 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); |
82 }; | 83 }; |
83 | 84 |
84 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ | 85 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ |
OLD | NEW |