| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_BROWSER_FRAME_GTK_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_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_gtk.h" | 10 #include "views/window/window_gtk.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 void Init(); | 25 void Init(); |
| 26 | 26 |
| 27 // BrowserFrame implementation. | 27 // BrowserFrame implementation. |
| 28 virtual views::Window* GetWindow(); | 28 virtual views::Window* GetWindow(); |
| 29 virtual void TabStripCreated(TabStrip* tabstrip); | 29 virtual void TabStripCreated(TabStrip* tabstrip); |
| 30 virtual int GetMinimizeButtonOffset() const; | 30 virtual int GetMinimizeButtonOffset() const; |
| 31 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; | 31 virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; |
| 32 virtual void UpdateThrobber(bool running); | 32 virtual void UpdateThrobber(bool running); |
| 33 virtual ThemeProvider* GetThemeProviderForFrame() const; | 33 virtual ThemeProvider* GetThemeProviderForFrame() const; |
| 34 | 34 |
| 35 // Overridden from views::Widget. | |
| 36 virtual ThemeProvider* GetThemeProvider() const; | |
| 37 virtual ThemeProvider* GetDefaultThemeProvider() const; | |
| 38 | |
| 39 protected: | 35 protected: |
| 40 // WidgetGtk overrides. | 36 // WidgetGtk overrides. |
| 41 virtual views::RootView* CreateRootView(); | 37 virtual views::RootView* CreateRootView(); |
| 42 | 38 |
| 43 private: | 39 private: |
| 44 // The BrowserView is our ClientView. This is a pointer to it. | 40 // The BrowserView is our ClientView. This is a pointer to it. |
| 45 BrowserView* browser_view_; | 41 BrowserView* browser_view_; |
| 46 | 42 |
| 47 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 43 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
| 48 BrowserNonClientFrameView* browser_frame_view_; | 44 BrowserNonClientFrameView* browser_frame_view_; |
| 49 | 45 |
| 50 // An unowning reference to the root view associated with the window. We save | 46 // An unowning reference to the root view associated with the window. We save |
| 51 // a copy as a BrowserRootView to avoid evil casting later, when we need to | 47 // a copy as a BrowserRootView to avoid evil casting later, when we need to |
| 52 // call functions that only exist on BrowserRootView (versus RootView). | 48 // call functions that only exist on BrowserRootView (versus RootView). |
| 53 BrowserRootView* root_view_; | 49 BrowserRootView* root_view_; |
| 54 | 50 |
| 55 Profile* profile_; | 51 Profile* profile_; |
| 56 | 52 |
| 57 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); | 53 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); |
| 58 }; | 54 }; |
| 59 | 55 |
| 60 #endif // CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ | 56 #endif // CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ |
| OLD | NEW |