| 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" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
| 13 #include "chrome/browser/ui/views/tab_icon_view_model.h" | 13 #include "chrome/browser/ui/views/tab_icon_view_model.h" |
| 14 #include "chrome/browser/ui/views/tabs/tab_strip_observer.h" | 14 #include "chrome/browser/ui/views/tabs/tab_strip_observer.h" |
| 15 | 15 |
| 16 #if !defined(OS_CHROMEOS) | 16 #if !defined(OS_CHROMEOS) |
| 17 #include "chrome/browser/ui/views/frame/avatar_button_manager.h" | 17 #include "chrome/browser/ui/views/frame/avatar_button_manager.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 class TabIconView; | 20 class TabIconView; |
| 21 class WebAppLeftHeaderView; | |
| 22 | 21 |
| 23 namespace ui { | 22 namespace ui { |
| 24 class Window; | 23 class Window; |
| 25 } | 24 } |
| 26 | 25 |
| 27 class BrowserNonClientFrameViewMus : public BrowserNonClientFrameView, | 26 class BrowserNonClientFrameViewMus : public BrowserNonClientFrameView, |
| 28 public TabIconViewModel, | 27 public TabIconViewModel, |
| 29 public TabStripObserver { | 28 public TabStripObserver { |
| 30 public: | 29 public: |
| 31 static const char kViewClassName[]; | 30 static const char kViewClassName[]; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Returns true if we should use a super short header with light bars instead | 90 // Returns true if we should use a super short header with light bars instead |
| 92 // of regular tabs. This header is used in immersive fullscreen when the | 91 // of regular tabs. This header is used in immersive fullscreen when the |
| 93 // top-of-window views are not revealed. | 92 // top-of-window views are not revealed. |
| 94 bool UseImmersiveLightbarHeaderStyle() const; | 93 bool UseImmersiveLightbarHeaderStyle() const; |
| 95 | 94 |
| 96 // Returns true if the header should be painted so that it looks the same as | 95 // Returns true if the header should be painted so that it looks the same as |
| 97 // the header used for packaged apps. Packaged apps use a different color | 96 // the header used for packaged apps. Packaged apps use a different color |
| 98 // scheme than browser windows. | 97 // scheme than browser windows. |
| 99 bool UsePackagedAppHeaderStyle() const; | 98 bool UsePackagedAppHeaderStyle() const; |
| 100 | 99 |
| 101 // Returns true if the header should be painted with a WebApp header style. | |
| 102 // The WebApp header style has a back button and title along with the usual | |
| 103 // accoutrements. | |
| 104 bool UseWebAppHeaderStyle() const; | |
| 105 | |
| 106 // Layout the incognito button. | 100 // Layout the incognito button. |
| 107 void LayoutIncognitoButton(); | 101 void LayoutIncognitoButton(); |
| 108 | 102 |
| 109 // Layout the profile switcher (if there is one). | 103 // Layout the profile switcher (if there is one). |
| 110 void LayoutProfileSwitcher(); | 104 void LayoutProfileSwitcher(); |
| 111 | 105 |
| 112 // Returns true if there is anything to paint. Some fullscreen windows do not | 106 // Returns true if there is anything to paint. Some fullscreen windows do not |
| 113 // need their frames painted. | 107 // need their frames painted. |
| 114 bool ShouldPaint() const; | 108 bool ShouldPaint() const; |
| 115 | 109 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 132 // Wrapper around the in-frame avatar switcher. | 126 // Wrapper around the in-frame avatar switcher. |
| 133 AvatarButtonManager profile_switcher_; | 127 AvatarButtonManager profile_switcher_; |
| 134 #endif | 128 #endif |
| 135 | 129 |
| 136 TabStrip* tab_strip_; | 130 TabStrip* tab_strip_; |
| 137 | 131 |
| 138 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMus); | 132 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMus); |
| 139 }; | 133 }; |
| 140 | 134 |
| 141 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ | 135 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MUS_H_ |
| OLD | NEW |