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

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

Issue 18019: Pixel perfection on tabstrip for non-Aero frame. This gets both ends of the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 11
12 class BrowserView; 12 class BrowserView;
13 class AeroGlassWindowResources; 13 class AeroGlassWindowResources;
14 14
15 class AeroGlassNonClientView : public views::NonClientView { 15 class AeroGlassNonClientView : public views::NonClientView {
16 public: 16 public:
17 // Constructs a non-client view for an AeroGlassFrame. 17 // Constructs a non-client view for an AeroGlassFrame.
18 AeroGlassNonClientView(AeroGlassFrame* frame, BrowserView* browser_view); 18 AeroGlassNonClientView(AeroGlassFrame* frame, BrowserView* browser_view);
19 virtual ~AeroGlassNonClientView(); 19 virtual ~AeroGlassNonClientView();
20 20
21 // Retrieve the bounds for the specified |tabstrip|, in the coordinate system
22 // of the non-client view (which whould be window coordinates).
21 gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip); 23 gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip);
22 24
23 protected: 25 protected:
24 // Overridden from views::NonClientView: 26 // Overridden from views::NonClientView:
25 virtual gfx::Rect CalculateClientAreaBounds(int width, int height) const; 27 virtual gfx::Rect CalculateClientAreaBounds(int width, int height) const;
26 virtual gfx::Size CalculateWindowSizeForClientSize(int width, 28 virtual gfx::Size CalculateWindowSizeForClientSize(int width,
27 int height) const; 29 int height) const;
28 virtual CPoint GetSystemMenuPoint() const; 30 virtual CPoint GetSystemMenuPoint() const;
29 virtual int NonClientHitTest(const gfx::Point& point); 31 virtual int NonClientHitTest(const gfx::Point& point);
30 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); 32 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 71
70 static void InitClass(); 72 static void InitClass();
71 static SkBitmap distributor_logo_; 73 static SkBitmap distributor_logo_;
72 static AeroGlassWindowResources* resources_; 74 static AeroGlassWindowResources* resources_;
73 75
74 DISALLOW_EVIL_CONSTRUCTORS(AeroGlassNonClientView); 76 DISALLOW_EVIL_CONSTRUCTORS(AeroGlassNonClientView);
75 }; 77 };
76 78
77 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_ 79 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_AERO_GLASS_NON_CLIENT_VIEW_H_
78 80
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698