Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 6975037: Revert 85666 - Consolidate ShouldUseNativeFrame/AlwaysUseNativeFrame/UseNativeFrame spaghetti. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698