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

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h

Issue 1636703002: Implement MD specs for non-tabbed windows in Ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 10 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698