| 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; | |
| 84 virtual gfx::Rect GetWindowBoundsForClientBounds( | 82 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 85 const gfx::Rect& client_bounds) const OVERRIDE; | 83 const gfx::Rect& client_bounds) const OVERRIDE; |
| 86 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 84 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 87 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 85 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
| 88 OVERRIDE; | 86 OVERRIDE; |
| 89 virtual void EnableClose(bool enable) OVERRIDE; | 87 virtual void EnableClose(bool enable) OVERRIDE; |
| 90 virtual void ResetWindowControls() OVERRIDE; | 88 virtual void ResetWindowControls() OVERRIDE; |
| 91 virtual void UpdateWindowIcon() OVERRIDE; | 89 virtual void UpdateWindowIcon() OVERRIDE; |
| 92 | 90 |
| 93 // Overridden from views::ViewMenuDelegate: | 91 // Overridden from views::ViewMenuDelegate: |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Multi-profile menu for profile_button_. | 200 // Multi-profile menu for profile_button_. |
| 203 scoped_ptr<ProfileMenuModel> profile_menu_model_; | 201 scoped_ptr<ProfileMenuModel> profile_menu_model_; |
| 204 | 202 |
| 205 // The Google services user name associated with this BrowserView's profile. | 203 // The Google services user name associated with this BrowserView's profile. |
| 206 StringPrefMember username_pref_; | 204 StringPrefMember username_pref_; |
| 207 | 205 |
| 208 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); | 206 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); |
| 209 }; | 207 }; |
| 210 | 208 |
| 211 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ | 209 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |