| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Returns true if there is anything to paint. Some fullscreen windows do not | 91 // Returns true if there is anything to paint. Some fullscreen windows do not |
| 92 // need their frames painted. | 92 // need their frames painted. |
| 93 bool ShouldPaint() const; | 93 bool ShouldPaint() const; |
| 94 | 94 |
| 95 void PaintToolbarBackground(gfx::Canvas* canvas); | 95 void PaintToolbarBackground(gfx::Canvas* canvas); |
| 96 | 96 |
| 97 // Draws the line under the header for windows without a toolbar and not using | 97 // Draws the line under the header for windows without a toolbar and not using |
| 98 // the packaged app header style. | 98 // the packaged app header style. |
| 99 void PaintContentEdge(gfx::Canvas* canvas); | 99 void PaintContentEdge(gfx::Canvas* canvas); |
| 100 | 100 |
| 101 // Returns the height for the header (non-client frame area). |
| 102 int GetHeaderHeight() const; |
| 103 |
| 101 // TODO(sky): Figure out how to support WebAppLeftHeaderView. | 104 // TODO(sky): Figure out how to support WebAppLeftHeaderView. |
| 102 | 105 |
| 103 // For popups, the window icon. | 106 // For popups, the window icon. |
| 104 TabIconView* window_icon_; | 107 TabIconView* window_icon_; |
| 105 | 108 |
| 106 #if !defined(OS_CHROMEOS) | 109 #if !defined(OS_CHROMEOS) |
| 107 // Wrapper around the in-frame avatar switcher. | 110 // Wrapper around the in-frame avatar switcher. |
| 108 AvatarButtonManager profile_switcher_; | 111 AvatarButtonManager profile_switcher_; |
| 109 #endif | 112 #endif |
| 110 | 113 |
| 111 TabStrip* tab_strip_; | 114 TabStrip* tab_strip_; |
| 112 | 115 |
| 113 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMus); | 116 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMus); |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 119 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
| OLD | NEW |