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

Side by Side Diff: chrome/browser/views/frame/aero_glass_non_client_view.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_
7 7
8 #include "chrome/browser/views/frame/aero_glass_frame.h" 8 #include "chrome/browser/views/frame/aero_glass_frame.h"
9 #include "chrome/views/non_client_view.h" 9 #include "chrome/views/non_client_view.h"
10 #include "chrome/views/button.h" 10 #include "chrome/views/button.h"
(...skipping 15 matching lines...) Expand all
26 virtual gfx::Size CalculateWindowSizeForClientSize(int width, 26 virtual gfx::Size CalculateWindowSizeForClientSize(int width,
27 int height) const; 27 int height) const;
28 virtual CPoint GetSystemMenuPoint() const; 28 virtual CPoint GetSystemMenuPoint() const;
29 virtual int NonClientHitTest(const gfx::Point& point); 29 virtual int NonClientHitTest(const gfx::Point& point);
30 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); 30 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask);
31 virtual void EnableClose(bool enable); 31 virtual void EnableClose(bool enable);
32 32
33 // Overridden from ChromeViews::View: 33 // Overridden from ChromeViews::View:
34 virtual void Paint(ChromeCanvas* canvas); 34 virtual void Paint(ChromeCanvas* canvas);
35 virtual void Layout(); 35 virtual void Layout();
36 virtual void GetPreferredSize(CSize* out); 36 virtual gfx::Size GetPreferredSize();
37 virtual void DidChangeBounds(const CRect& previous, const CRect& current); 37 virtual void DidChangeBounds(const CRect& previous, const CRect& current);
38 virtual void ViewHierarchyChanged(bool is_add, 38 virtual void ViewHierarchyChanged(bool is_add,
39 ChromeViews::View* parent, 39 ChromeViews::View* parent,
40 ChromeViews::View* child); 40 ChromeViews::View* child);
41 41
42 private: 42 private:
43 // Returns the height of the non-client area at the top of the window (the 43 // Returns the height of the non-client area at the top of the window (the
44 // title bar, etc). 44 // title bar, etc).
45 int CalculateNonClientTopHeight() const; 45 int CalculateNonClientTopHeight() const;
46 46
(...skipping 22 matching lines...) Expand all
69 69
70 static void InitClass(); 70 static void InitClass();
71 static SkBitmap distributor_logo_; 71 static SkBitmap distributor_logo_;
72 static AeroGlassWindowResources* resources_; 72 static AeroGlassWindowResources* resources_;
73 73
74 DISALLOW_EVIL_CONSTRUCTORS(AeroGlassNonClientView); 74 DISALLOW_EVIL_CONSTRUCTORS(AeroGlassNonClientView);
75 }; 75 };
76 76
77 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_ 77 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_
78 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698