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

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

Issue 2690443002: cros-md: Remove the non-MD immersive mode code paths (Closed)
Patch Set: rebase & code comments Created 3 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 <memory> 8 #include <memory>
9 9
10 #include "ash/common/shell_observer.h" 10 #include "ash/common/shell_observer.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 AvatarDisplayOnTeleportedWindow); 80 AvatarDisplayOnTeleportedWindow);
81 friend class BrowserHeaderPainterAsh; 81 friend class BrowserHeaderPainterAsh;
82 82
83 // Distance between the left edge of the NonClientFrameView and the tab strip. 83 // Distance between the left edge of the NonClientFrameView and the tab strip.
84 int GetTabStripLeftInset() const; 84 int GetTabStripLeftInset() const;
85 85
86 // Distance between the right edge of the NonClientFrameView and the tab 86 // Distance between the right edge of the NonClientFrameView and the tab
87 // strip. 87 // strip.
88 int GetTabStripRightInset() const; 88 int GetTabStripRightInset() const;
89 89
90 // Returns true if we should use a super short header with light bars instead
91 // of regular tabs. This header is used in immersive fullscreen when the
92 // top-of-window views are not revealed.
93 bool UseImmersiveLightbarHeaderStyle() const;
94
95 // Returns true if the header should be painted so that it looks the same as 90 // Returns true if the header should be painted so that it looks the same as
96 // the header used for packaged apps. Packaged apps use a different color 91 // the header used for packaged apps. Packaged apps use a different color
97 // scheme than browser windows. 92 // scheme than browser windows.
98 bool UsePackagedAppHeaderStyle() const; 93 bool UsePackagedAppHeaderStyle() const;
99 94
100 void LayoutProfileIndicatorIcon(); 95 void LayoutProfileIndicatorIcon();
101 96
102 // Returns true if there is anything to paint. Some fullscreen windows do not 97 // Returns true if there is anything to paint. Some fullscreen windows do not
103 // need their frames painted. 98 // need their frames painted.
104 bool ShouldPaint() const; 99 bool ShouldPaint() const;
105 100
106 void PaintToolbarBackground(gfx::Canvas* canvas); 101 void PaintToolbarBackground(gfx::Canvas* canvas);
107 102
108 // View which contains the window controls. 103 // View which contains the window controls.
109 ash::FrameCaptionButtonContainerView* caption_button_container_; 104 ash::FrameCaptionButtonContainerView* caption_button_container_;
110 105
111 // For popups, the window icon. 106 // For popups, the window icon.
112 TabIconView* window_icon_; 107 TabIconView* window_icon_;
113 108
114 // Helper class for painting the header. 109 // Helper class for painting the header.
115 std::unique_ptr<ash::HeaderPainter> header_painter_; 110 std::unique_ptr<ash::HeaderPainter> header_painter_;
116 111
117 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 112 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
118 }; 113 };
119 114
120 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 115 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.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