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

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

Issue 18799: Make popups closer to pixel-perfect. The main problem is that the toolbar is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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_OPAQUE_NON_CLIENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_
7 7
8 #include "chrome/browser/views/frame/opaque_frame.h" 8 #include "chrome/browser/views/frame/opaque_frame.h"
9 #include "chrome/browser/views/tab_icon_view.h" 9 #include "chrome/browser/views/tab_icon_view.h"
10 #include "chrome/views/non_client_view.h" 10 #include "chrome/views/non_client_view.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 int NonClientBorderWidth() const; 88 int NonClientBorderWidth() const;
89 89
90 // Returns the height of the entire nonclient top border, including the window 90 // Returns the height of the entire nonclient top border, including the window
91 // frame, any title area, and any connected client edge. 91 // frame, any title area, and any connected client edge.
92 int NonClientTopBorderHeight() const; 92 int NonClientTopBorderHeight() const;
93 93
94 // Returns the height of the entire nonclient bottom border, including both 94 // Returns the height of the entire nonclient bottom border, including both
95 // the window frame and the client edge. 95 // the window frame and the client edge.
96 int NonClientBottomBorderHeight() const; 96 int NonClientBottomBorderHeight() const;
97 97
98 // For windows without a toolbar, restored mode also draws a client edge below 98 // For windows without a toolbar, a bottom border, and, in restored mode, a
99 // the titlebar which is considered part of the nonclient height. This 99 // client edge are drawn at the bottom of the titlebar. When a toolbar is
100 // returns the height of any such edge. 100 // present, neither of these are drawn, as the toolbar itself will edge the
101 int ClientEdgeThicknessWithinNonClientHeight() const; 101 // titlebar area. This returns the height of any such edge.
102 int BottomEdgeThicknessWithinNonClientHeight() const;
102 103
103 // Calculates multiple values related to title layout. Returns the height of 104 // Calculates multiple values related to title layout. Returns the height of
104 // the entire titlebar including any connected client edge. 105 // the entire titlebar including any connected client edge.
105 int TitleCoordinates(int* title_top_spacing, 106 int TitleCoordinates(int* title_top_spacing,
106 int* title_thickness) const; 107 int* title_thickness) const;
107 108
108 // Paint various sub-components of this view. The *FrameBorder() functions 109 // Paint various sub-components of this view. The *FrameBorder() functions
109 // also paint the background of the titlebar area, since the top frame border 110 // also paint the background of the titlebar area, since the top frame border
110 // and titlebar background are a contiguous component. 111 // and titlebar background are a contiguous component.
111 void PaintRestoredFrameBorder(ChromeCanvas* canvas); 112 void PaintRestoredFrameBorder(ChromeCanvas* canvas);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 static views::WindowResources* inactive_resources_; 174 static views::WindowResources* inactive_resources_;
174 static views::WindowResources* active_otr_resources_; 175 static views::WindowResources* active_otr_resources_;
175 static views::WindowResources* inactive_otr_resources_; 176 static views::WindowResources* inactive_otr_resources_;
176 static ChromeFont title_font_; 177 static ChromeFont title_font_;
177 178
178 DISALLOW_EVIL_CONSTRUCTORS(OpaqueNonClientView); 179 DISALLOW_EVIL_CONSTRUCTORS(OpaqueNonClientView);
179 }; 180 };
180 181
181 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_ 182 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_
182 183
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/frame/opaque_non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698