OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ | 6 #define CHROME_BROWSER_UI_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/ui/views/frame/browser_frame.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame.h" |
11 #include "views/window/window_gtk.h" | 11 #include "views/window/window_gtk.h" |
12 | 12 |
13 class BrowserNonClientFrameView; | 13 class BrowserNonClientFrameView; |
14 class BrowserRootView; | 14 class BrowserRootView; |
15 | 15 |
16 class BrowserFrameGtk : public BrowserFrame, | 16 class BrowserFrameGtk : public BrowserFrame, |
17 public views::WindowGtk { | 17 public views::WindowGtk { |
18 public: | 18 public: |
19 // Normally you will create this class by calling BrowserFrame::Create. | 19 // Normally you will create this class by calling BrowserFrame::Create. |
20 // Init must be called before using this class, which Create will do for you. | 20 // Init must be called before using this class, which Create will do for you. |
21 BrowserFrameGtk(BrowserView* browser_view, Profile* profile); | 21 BrowserFrameGtk(BrowserView* browser_view, Profile* profile); |
22 virtual ~BrowserFrameGtk(); | 22 virtual ~BrowserFrameGtk(); |
23 | 23 |
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 InitBrowserFrame(); |
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(views::View* tabstrip) const; | 33 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; |
34 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; | 34 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; |
35 virtual void UpdateThrobber(bool running); | 35 virtual void UpdateThrobber(bool running); |
36 virtual ui::ThemeProvider* GetThemeProviderForFrame() const; | 36 virtual ui::ThemeProvider* GetThemeProviderForFrame() const; |
37 virtual bool AlwaysUseNativeFrame() const; | 37 virtual bool AlwaysUseNativeFrame() const; |
38 virtual views::View* GetFrameView() const; | 38 virtual views::View* GetFrameView() const; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // a copy as a BrowserRootView to avoid evil casting later, when we need to | 74 // a copy as a BrowserRootView to avoid evil casting later, when we need to |
75 // call functions that only exist on BrowserRootView (versus RootView). | 75 // call functions that only exist on BrowserRootView (versus RootView). |
76 BrowserRootView* root_view_; | 76 BrowserRootView* root_view_; |
77 | 77 |
78 Profile* profile_; | 78 Profile* profile_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); | 80 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); |
81 }; | 81 }; |
82 | 82 |
83 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ | 83 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_GTK_H_ |
OLD | NEW |