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_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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 typedef std::map<int, Tabs> TabsClosingMap; | 266 typedef std::map<int, Tabs> TabsClosingMap; |
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 class TabStripTest; | 274 friend class TabStripTest; |
275 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest); | 275 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest); |
276 friend class TabStripTest; | |
277 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); | 276 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); |
278 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked); | 277 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked); |
279 | 278 |
280 // 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 |
281 // well as a window used to highlight where the drop occurs. | 280 // well as a window used to highlight where the drop occurs. |
282 struct DropInfo { | 281 struct DropInfo { |
283 DropInfo(int drop_index, | 282 DropInfo(int drop_index, |
284 bool drop_before, | 283 bool drop_before, |
285 bool point_down, | 284 bool point_down, |
286 views::Widget* context); | 285 views::Widget* context); |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 bool immersive_style_; | 673 bool immersive_style_; |
675 | 674 |
676 // Our observers. | 675 // Our observers. |
677 typedef ObserverList<TabStripObserver> TabStripObservers; | 676 typedef ObserverList<TabStripObserver> TabStripObservers; |
678 TabStripObservers observers_; | 677 TabStripObservers observers_; |
679 | 678 |
680 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 679 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
681 }; | 680 }; |
682 | 681 |
683 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |