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_GLASS_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 28 GlassBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
29 virtual ~GlassBrowserFrameView(); | 29 virtual ~GlassBrowserFrameView(); |
30 | 30 |
31 // Overridden from BrowserNonClientFrameView: | 31 // Overridden from BrowserNonClientFrameView: |
32 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 32 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
33 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 33 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; |
34 virtual void UpdateThrobber(bool running) OVERRIDE; | 34 virtual void UpdateThrobber(bool running) OVERRIDE; |
35 | 35 |
36 // Overridden from views::NonClientFrameView: | 36 // Overridden from views::NonClientFrameView: |
37 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 37 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 38 virtual bool AlwaysUseNativeFrame() const OVERRIDE; |
38 virtual gfx::Rect GetWindowBoundsForClientBounds( | 39 virtual gfx::Rect GetWindowBoundsForClientBounds( |
39 const gfx::Rect& client_bounds) const OVERRIDE; | 40 const gfx::Rect& client_bounds) const OVERRIDE; |
40 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 41 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
41 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 42 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
42 OVERRIDE { } | 43 OVERRIDE { } |
43 virtual void EnableClose(bool enable) OVERRIDE { } | 44 virtual void EnableClose(bool enable) OVERRIDE { } |
44 virtual void ResetWindowControls() OVERRIDE { } | 45 virtual void ResetWindowControls() OVERRIDE { } |
45 virtual void UpdateWindowIcon() OVERRIDE { } | 46 virtual void UpdateWindowIcon() OVERRIDE { } |
46 | 47 |
47 // views::ViewMenuDelegate implementation: | 48 // views::ViewMenuDelegate implementation: |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 StringPrefMember username_pref_; | 132 StringPrefMember username_pref_; |
132 | 133 |
133 static const int kThrobberIconCount = 24; | 134 static const int kThrobberIconCount = 24; |
134 static HICON throbber_icons_[kThrobberIconCount]; | 135 static HICON throbber_icons_[kThrobberIconCount]; |
135 static void InitThrobberIcons(); | 136 static void InitThrobberIcons(); |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 138 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
138 }; | 139 }; |
139 | 140 |
140 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 141 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |