| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // accoutrements. | 114 // accoutrements. |
| 115 bool UseWebAppHeaderStyle() const; | 115 bool UseWebAppHeaderStyle() const; |
| 116 | 116 |
| 117 // Layout the avatar button. | 117 // Layout the avatar button. |
| 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 bool IsToolbarVisible() const; |
| 125 |
| 124 // Paints the header background when the frame is in immersive fullscreen and | 126 // Paints the header background when the frame is in immersive fullscreen and |
| 125 // tab light bar is visible. | 127 // tab light bar is visible. |
| 126 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); | 128 void PaintImmersiveLightbarStyleHeader(gfx::Canvas* canvas); |
| 127 | 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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 |