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

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

Issue 28072: Make non-glass popups match new mockup from Glen.... (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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int TopResizeHeight() const; 78 int TopResizeHeight() const;
79 79
80 // Returns the thickness of the entire nonclient left, right, and bottom 80 // Returns the thickness of the entire nonclient left, right, and bottom
81 // borders, including both the window frame and any client edge. 81 // borders, including both the window frame and any client edge.
82 int NonClientBorderThickness() const; 82 int NonClientBorderThickness() const;
83 83
84 // Returns the height of the entire nonclient top border, including the window 84 // Returns the height of the entire nonclient top border, including the window
85 // frame, any title area, and any connected client edge. 85 // frame, any title area, and any connected client edge.
86 int NonClientTopBorderHeight() const; 86 int NonClientTopBorderHeight() const;
87 87
88 // For windows without a toolbar, a bottom border, and, in restored mode, a 88 // The nonclient area at the top of the window may include some "unavailable"
89 // client edge are drawn at the bottom of the titlebar. When a toolbar is 89 // pixels at its bottom: a dark shadow along the bottom of the titlebar and a
90 // present, neither of these are drawn, as the toolbar itself will edge the 90 // client edge. These vary from mode to mode, so this function returns the
91 // titlebar area. This returns the height of any such edge. 91 // number of such pixels the nonclient height includes.
92 int BottomEdgeThicknessWithinNonClientHeight() const; 92 int UnavailablePixelsAtBottomOfNonClientHeight() const;
93 93
94 // Calculates multiple values related to title layout. Returns the height of 94 // Calculates multiple values related to title layout. Returns the height of
95 // the entire titlebar including any connected client edge. 95 // the entire titlebar including any connected client edge.
96 int TitleCoordinates(int* title_top_spacing, 96 int TitleCoordinates(int* title_top_spacing,
97 int* title_thickness) const; 97 int* title_thickness) const;
98 98
99 // Paint various sub-components of this view. The *FrameBorder() functions 99 // Paint various sub-components of this view. The *FrameBorder() functions
100 // also paint the background of the titlebar area, since the top frame border 100 // also paint the background of the titlebar area, since the top frame border
101 // and titlebar background are a contiguous component. 101 // and titlebar background are a contiguous component.
102 void PaintRestoredFrameBorder(ChromeCanvas* canvas); 102 void PaintRestoredFrameBorder(ChromeCanvas* canvas);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 static views::WindowResources* inactive_resources_; 158 static views::WindowResources* inactive_resources_;
159 static views::WindowResources* active_otr_resources_; 159 static views::WindowResources* active_otr_resources_;
160 static views::WindowResources* inactive_otr_resources_; 160 static views::WindowResources* inactive_otr_resources_;
161 static ChromeFont title_font_; 161 static ChromeFont title_font_;
162 162
163 DISALLOW_EVIL_CONSTRUCTORS(OpaqueNonClientView); 163 DISALLOW_EVIL_CONSTRUCTORS(OpaqueNonClientView);
164 }; 164 };
165 165
166 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_ 166 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_
167 167
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