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

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

Issue 18255: Render maximized mode better when using nonstandard border widths.... (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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 views::View* child); 67 views::View* child);
68 virtual bool GetAccessibleRole(VARIANT* role); 68 virtual bool GetAccessibleRole(VARIANT* role);
69 virtual bool GetAccessibleName(std::wstring* name); 69 virtual bool GetAccessibleName(std::wstring* name);
70 virtual void SetAccessibleName(const std::wstring& name); 70 virtual void SetAccessibleName(const std::wstring& name);
71 71
72 private: 72 private:
73 // Returns the height of the non-client area at the top of the window (the 73 // Returns the height of the non-client area at the top of the window (the
74 // title bar, etc). 74 // title bar, etc).
75 int CalculateNonClientTopHeight() const; 75 int CalculateNonClientTopHeight() const;
76 76
77 // Returns the current thickness of the horizontal border that makes up the 77 // Returns the current thickness of the border that makes up the window left
78 // window edge. 78 // and right edges.
79 int HorizontalBorderSize() const; 79 int HorizontalBorderSize() const;
80 80
81 // Returns the current thickness of the border that makes up the window bottom
82 // edge.
83 int VerticalBorderBottomSize() const;
84
81 // Paint various sub-components of this view. 85 // Paint various sub-components of this view.
82 void PaintFrameBorder(ChromeCanvas* canvas); 86 void PaintFrameBorder(ChromeCanvas* canvas);
83 void PaintMaximizedFrameBorder(ChromeCanvas* canvas); 87 void PaintMaximizedFrameBorder(ChromeCanvas* canvas);
84 void PaintDistributorLogo(ChromeCanvas* canvas); 88 void PaintDistributorLogo(ChromeCanvas* canvas);
85 void PaintTitleBar(ChromeCanvas* canvas); 89 void PaintTitleBar(ChromeCanvas* canvas);
86 void PaintToolbarBackground(ChromeCanvas* canvas); 90 void PaintToolbarBackground(ChromeCanvas* canvas);
87 void PaintOTRAvatar(ChromeCanvas* canvas); 91 void PaintOTRAvatar(ChromeCanvas* canvas);
88 void PaintClientEdge(ChromeCanvas* canvas); 92 void PaintClientEdge(ChromeCanvas* canvas);
89 void PaintMaximizedClientEdge(ChromeCanvas* canvas); 93 void PaintMaximizedClientEdge(ChromeCanvas* canvas);
90 94
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 static views::WindowResources* inactive_resources_; 149 static views::WindowResources* inactive_resources_;
146 static views::WindowResources* active_otr_resources_; 150 static views::WindowResources* active_otr_resources_;
147 static views::WindowResources* inactive_otr_resources_; 151 static views::WindowResources* inactive_otr_resources_;
148 static ChromeFont title_font_; 152 static ChromeFont title_font_;
149 153
150 DISALLOW_EVIL_CONSTRUCTORS(OpaqueNonClientView); 154 DISALLOW_EVIL_CONSTRUCTORS(OpaqueNonClientView);
151 }; 155 };
152 156
153 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_ 157 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_OPAQUE_NON_CLIENT_VIEW_H_
154 158
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698