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_OPAQUE_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int* theme_offset, | 72 int* theme_offset, |
73 SkBitmap** left_corner, | 73 SkBitmap** left_corner, |
74 SkBitmap** right_corner); | 74 SkBitmap** right_corner); |
75 | 75 |
76 // Expose these to subclasses. | 76 // Expose these to subclasses. |
77 BrowserFrame* frame() { return frame_; } | 77 BrowserFrame* frame() { return frame_; } |
78 BrowserView* browser_view() { return browser_view_; } | 78 BrowserView* browser_view() { return browser_view_; } |
79 | 79 |
80 // Overridden from views::NonClientFrameView: | 80 // Overridden from views::NonClientFrameView: |
81 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 81 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 82 virtual bool AlwaysUseNativeFrame() const OVERRIDE; |
| 83 virtual bool AlwaysUseCustomFrame() const OVERRIDE; |
82 virtual gfx::Rect GetWindowBoundsForClientBounds( | 84 virtual gfx::Rect GetWindowBoundsForClientBounds( |
83 const gfx::Rect& client_bounds) const OVERRIDE; | 85 const gfx::Rect& client_bounds) const OVERRIDE; |
84 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 86 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
85 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 87 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
86 OVERRIDE; | 88 OVERRIDE; |
87 virtual void EnableClose(bool enable) OVERRIDE; | 89 virtual void EnableClose(bool enable) OVERRIDE; |
88 virtual void ResetWindowControls() OVERRIDE; | 90 virtual void ResetWindowControls() OVERRIDE; |
89 virtual void UpdateWindowIcon() OVERRIDE; | 91 virtual void UpdateWindowIcon() OVERRIDE; |
90 | 92 |
91 // Overridden from views::ViewMenuDelegate: | 93 // Overridden from views::ViewMenuDelegate: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Multi-profile menu for profile_button_. | 202 // Multi-profile menu for profile_button_. |
201 scoped_ptr<ProfileMenuModel> profile_menu_model_; | 203 scoped_ptr<ProfileMenuModel> profile_menu_model_; |
202 | 204 |
203 // The Google services user name associated with this BrowserView's profile. | 205 // The Google services user name associated with this BrowserView's profile. |
204 StringPrefMember username_pref_; | 206 StringPrefMember username_pref_; |
205 | 207 |
206 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 208 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
207 }; | 209 }; |
208 | 210 |
209 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 211 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |