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

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

Issue 2273863002: Revert of Refactor DoesIntersectRect into BrowserNonClientFrameView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
94 // Distance between the left edge of the NonClientFrameView and the tab strip. 98 // Distance between the left edge of the NonClientFrameView and the tab strip.
95 int GetTabStripLeftInset() const; 99 int GetTabStripLeftInset() const;
96 100
97 // Distance between the right edge of the NonClientFrameView and the tab 101 // Distance between the right edge of the NonClientFrameView and the tab
98 // strip. 102 // strip.
99 int GetTabStripRightInset() const; 103 int GetTabStripRightInset() const;
100 104
101 // Returns true if we should use a super short header with light bars instead 105 // Returns true if we should use a super short header with light bars instead
102 // of regular tabs. This header is used in immersive fullscreen when the 106 // of regular tabs. This header is used in immersive fullscreen when the
103 // top-of-window views are not revealed. 107 // top-of-window views are not revealed.
(...skipping 27 matching lines...) Expand all
131 // For popups, the window icon. 135 // For popups, the window icon.
132 TabIconView* window_icon_; 136 TabIconView* window_icon_;
133 137
134 // Helper class for painting the header. 138 // Helper class for painting the header.
135 std::unique_ptr<ash::HeaderPainter> header_painter_; 139 std::unique_ptr<ash::HeaderPainter> header_painter_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 141 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
138 }; 142 };
139 143
140 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 144 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698