Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| 7 | 7 |
| 8 #include "ash/shell_observer.h" | 8 #include "ash/shell_observer.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 void LayoutAvatar(); | 118 void LayoutAvatar(); |
| 119 | 119 |
| 120 // Returns true if there is anything to paint. Some fullscreen windows do not | 120 // Returns true if there is anything to paint. Some fullscreen windows do not |
| 121 // need their frames painted. | 121 // need their frames painted. |
| 122 bool ShouldPaint() const; | 122 bool ShouldPaint() const; |
| 123 | 123 |
| 124 // Paints the header background when the frame is in immersive fullscreen and | 124 // Paints the header background when the frame is in immersive fullscreen and |
| 125 // tab light bar is visible. | 125 // tab light bar is visible. |
| 126 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); | 126 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); |
| 127 | 127 |
| 128 bool IsToolbarVisible() const; | |
|
Peter Kasting
2016/02/05 22:10:25
Nit: Swap with function above to keep the PaintXXX
tdanderson
2016/02/08 19:36:45
Done.
| |
| 129 | |
| 128 void PaintToolbarBackground(gfx::Canvas* canvas); | 130 void PaintToolbarBackground(gfx::Canvas* canvas); |
| 129 | 131 |
| 130 // Draws the line under the header for windows without a toolbar and not using | 132 // Draws the line under the header for windows without a toolbar and not using |
| 131 // the packaged app header style. | 133 // the packaged app header style. |
| 132 void PaintContentEdge(gfx::Canvas* canvas); | 134 void PaintContentEdge(gfx::Canvas* canvas); |
| 133 | 135 |
| 134 // View which contains the window controls. | 136 // View which contains the window controls. |
| 135 ash::FrameCaptionButtonContainerView* caption_button_container_; | 137 ash::FrameCaptionButtonContainerView* caption_button_container_; |
| 136 | 138 |
| 137 // The holder for the buttons on the left side of the header. This is included | 139 // The holder for the buttons on the left side of the header. This is included |
| 138 // for web app style frames, and includes a back button and location icon. | 140 // for web app style frames, and includes a back button and location icon. |
| 139 WebAppLeftHeaderView* web_app_left_header_view_; | 141 WebAppLeftHeaderView* web_app_left_header_view_; |
| 140 | 142 |
| 141 // For popups, the window icon. | 143 // For popups, the window icon. |
| 142 TabIconView* window_icon_; | 144 TabIconView* window_icon_; |
| 143 | 145 |
| 144 // Helper class for painting the header. | 146 // Helper class for painting the header. |
| 145 scoped_ptr<ash::HeaderPainter> header_painter_; | 147 scoped_ptr<ash::HeaderPainter> header_painter_; |
| 146 | 148 |
| 147 // Updates the hittest bounds overrides based on the window show type. | 149 // Updates the hittest bounds overrides based on the window show type. |
| 148 scoped_ptr<ash::FrameBorderHitTestController> | 150 scoped_ptr<ash::FrameBorderHitTestController> |
| 149 frame_border_hit_test_controller_; | 151 frame_border_hit_test_controller_; |
| 150 | 152 |
| 151 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 153 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
| 152 }; | 154 }; |
| 153 | 155 |
| 154 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 156 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| OLD | NEW |