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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 983853002: Hide close buttons of inactive stacked tabs by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new tests Created 5 years, 9 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_TABS_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 typedef std::pair<TabsClosingMap::iterator, 267 typedef std::pair<TabsClosingMap::iterator,
268 Tabs::iterator> FindClosingTabResult; 268 Tabs::iterator> FindClosingTabResult;
269 269
270 class RemoveTabDelegate; 270 class RemoveTabDelegate;
271 271
272 friend class TabDragController; 272 friend class TabDragController;
273 friend class TabDragControllerTest; 273 friend class TabDragControllerTest;
274 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest); 274 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest);
275 friend class TabStripTest; 275 friend class TabStripTest;
276 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); 276 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked);
277 FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton); 277 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked);
278 278
279 // Used during a drop session of a url. Tracks the position of the drop as 279 // Used during a drop session of a url. Tracks the position of the drop as
280 // well as a window used to highlight where the drop occurs. 280 // well as a window used to highlight where the drop occurs.
281 struct DropInfo { 281 struct DropInfo {
282 DropInfo(int drop_index, 282 DropInfo(int drop_index,
283 bool drop_before, 283 bool drop_before,
284 bool point_down, 284 bool point_down,
285 views::Widget* context); 285 views::Widget* context);
286 ~DropInfo(); 286 ~DropInfo();
287 287
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 bool immersive_style_; 673 bool immersive_style_;
674 674
675 // Our observers. 675 // Our observers.
676 typedef ObserverList<TabStripObserver> TabStripObservers; 676 typedef ObserverList<TabStripObserver> TabStripObservers;
677 TabStripObservers observers_; 677 TabStripObservers observers_;
678 678
679 DISALLOW_COPY_AND_ASSIGN(TabStrip); 679 DISALLOW_COPY_AND_ASSIGN(TabStrip);
680 }; 680 };
681 681
682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698