| OLD | NEW |
| 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_GLASS_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/views/frame/browser_frame.h" | 8 #include "chrome/browser/views/frame/browser_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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 int NonClientBorderThickness() const; | 47 int NonClientBorderThickness() const; |
| 48 | 48 |
| 49 // Returns the height of the entire nonclient top border, including the window | 49 // Returns the height of the entire nonclient top border, including the window |
| 50 // frame, any title area, and any connected client edge. | 50 // frame, any title area, and any connected client edge. |
| 51 int NonClientTopBorderHeight() const; | 51 int NonClientTopBorderHeight() const; |
| 52 | 52 |
| 53 // Paint various sub-components of this view. | 53 // Paint various sub-components of this view. |
| 54 void PaintDistributorLogo(ChromeCanvas* canvas); | 54 void PaintDistributorLogo(ChromeCanvas* canvas); |
| 55 void PaintToolbarBackground(ChromeCanvas* canvas); | 55 void PaintToolbarBackground(ChromeCanvas* canvas); |
| 56 void PaintOTRAvatar(ChromeCanvas* canvas); | 56 void PaintOTRAvatar(ChromeCanvas* canvas); |
| 57 void PaintClientEdge(ChromeCanvas* canvas); | 57 void PaintRestoredClientEdge(ChromeCanvas* canvas); |
| 58 | 58 |
| 59 // Layout various sub-components of this view. | 59 // Layout various sub-components of this view. |
| 60 void LayoutDistributorLogo(); | 60 void LayoutDistributorLogo(); |
| 61 void LayoutOTRAvatar(); | 61 void LayoutOTRAvatar(); |
| 62 void LayoutClientView(); | 62 void LayoutClientView(); |
| 63 | 63 |
| 64 // Returns the bounds of the client area for the specified view size. | 64 // Returns the bounds of the client area for the specified view size. |
| 65 gfx::Rect CalculateClientAreaBounds(int width, int height) const; | 65 gfx::Rect CalculateClientAreaBounds(int width, int height) const; |
| 66 | 66 |
| 67 // Starts/Stops the window throbber running. | 67 // Starts/Stops the window throbber running. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 98 | 98 |
| 99 static const int kThrobberIconCount = 24; | 99 static const int kThrobberIconCount = 24; |
| 100 static HICON throbber_icons_[kThrobberIconCount]; | 100 static HICON throbber_icons_[kThrobberIconCount]; |
| 101 static void InitThrobberIcons(); | 101 static void InitThrobberIcons(); |
| 102 | 102 |
| 103 DISALLOW_EVIL_CONSTRUCTORS(GlassBrowserFrameView); | 103 DISALLOW_EVIL_CONSTRUCTORS(GlassBrowserFrameView); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 106 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 107 | 107 |
| OLD | NEW |