| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 private: | 258 private: |
| 259 typedef std::vector<Tab*> Tabs; | 259 typedef std::vector<Tab*> Tabs; |
| 260 typedef std::map<int, Tabs> TabsClosingMap; | 260 typedef std::map<int, Tabs> TabsClosingMap; |
| 261 typedef std::pair<TabsClosingMap::iterator, | 261 typedef std::pair<TabsClosingMap::iterator, |
| 262 Tabs::iterator> FindClosingTabResult; | 262 Tabs::iterator> FindClosingTabResult; |
| 263 | 263 |
| 264 class RemoveTabDelegate; | 264 class RemoveTabDelegate; |
| 265 | 265 |
| 266 friend class TabDragController; | 266 friend class TabDragController; |
| 267 friend class TabDragControllerTest; | 267 friend class TabDragControllerTest; |
| 268 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest); | 268 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, DragWithGesture); |
| 269 friend class TabStripTest; | 269 friend class TabStripTest; |
| 270 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); | 270 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); |
| 271 FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton); | 271 FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton); |
| 272 | 272 |
| 273 // Used during a drop session of a url. Tracks the position of the drop as | 273 // Used during a drop session of a url. Tracks the position of the drop as |
| 274 // well as a window used to highlight where the drop occurs. | 274 // well as a window used to highlight where the drop occurs. |
| 275 struct DropInfo { | 275 struct DropInfo { |
| 276 DropInfo(int drop_index, | 276 DropInfo(int drop_index, |
| 277 bool drop_before, | 277 bool drop_before, |
| 278 bool point_down, | 278 bool point_down, |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 bool immersive_style_; | 676 bool immersive_style_; |
| 677 | 677 |
| 678 // Our observers. | 678 // Our observers. |
| 679 typedef ObserverList<TabStripObserver> TabStripObservers; | 679 typedef ObserverList<TabStripObserver> TabStripObservers; |
| 680 TabStripObservers observers_; | 680 TabStripObservers observers_; |
| 681 | 681 |
| 682 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 682 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 683 }; | 683 }; |
| 684 | 684 |
| 685 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 685 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |