| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/shell_observer.h" | 10 #include "ash/common/shell_observer.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 84 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 85 ImmersiveFullscreen); | 85 ImmersiveFullscreen); |
| 86 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 86 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 87 ToggleMaximizeModeRelayout); | 87 ToggleMaximizeModeRelayout); |
| 88 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, | 88 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, |
| 89 AvatarDisplayOnTeleportedWindow); | 89 AvatarDisplayOnTeleportedWindow); |
| 90 FRIEND_TEST_ALL_PREFIXES(WebAppLeftHeaderViewTest, BackButton); | 90 FRIEND_TEST_ALL_PREFIXES(WebAppLeftHeaderViewTest, BackButton); |
| 91 FRIEND_TEST_ALL_PREFIXES(WebAppLeftHeaderViewTest, LocationIcon); | 91 FRIEND_TEST_ALL_PREFIXES(WebAppLeftHeaderViewTest, LocationIcon); |
| 92 friend class BrowserHeaderPainterAsh; | 92 friend class BrowserHeaderPainterAsh; |
| 93 | 93 |
| 94 // views::NonClientFrameView: | |
| 95 bool DoesIntersectRect(const views::View* target, | |
| 96 const gfx::Rect& rect) const override; | |
| 97 | |
| 98 // Distance between the left edge of the NonClientFrameView and the tab strip. | 94 // Distance between the left edge of the NonClientFrameView and the tab strip. |
| 99 int GetTabStripLeftInset() const; | 95 int GetTabStripLeftInset() const; |
| 100 | 96 |
| 101 // Distance between the right edge of the NonClientFrameView and the tab | 97 // Distance between the right edge of the NonClientFrameView and the tab |
| 102 // strip. | 98 // strip. |
| 103 int GetTabStripRightInset() const; | 99 int GetTabStripRightInset() const; |
| 104 | 100 |
| 105 // Returns true if we should use a super short header with light bars instead | 101 // Returns true if we should use a super short header with light bars instead |
| 106 // of regular tabs. This header is used in immersive fullscreen when the | 102 // of regular tabs. This header is used in immersive fullscreen when the |
| 107 // top-of-window views are not revealed. | 103 // top-of-window views are not revealed. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 135 // For popups, the window icon. | 131 // For popups, the window icon. |
| 136 TabIconView* window_icon_; | 132 TabIconView* window_icon_; |
| 137 | 133 |
| 138 // Helper class for painting the header. | 134 // Helper class for painting the header. |
| 139 std::unique_ptr<ash::HeaderPainter> header_painter_; | 135 std::unique_ptr<ash::HeaderPainter> header_painter_; |
| 140 | 136 |
| 141 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 137 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
| 142 }; | 138 }; |
| 143 | 139 |
| 144 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 140 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| OLD | NEW |