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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 private: | 265 private: |
266 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; | 266 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; |
267 | 267 |
268 class RemoveTabDelegate; | 268 class RemoveTabDelegate; |
269 | 269 |
270 friend class TabDragController; | 270 friend class TabDragController; |
271 friend class TabDragControllerTest; | 271 friend class TabDragControllerTest; |
272 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest); | 272 FRIEND_TEST_ALL_PREFIXES(TabDragControllerTest, GestureEndShouldEndDragTest); |
273 friend class TabStripTest; | 273 friend class TabStripTest; |
274 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); | 274 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); |
| 275 FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton); |
275 | 276 |
276 // Used during a drop session of a url. Tracks the position of the drop as | 277 // Used during a drop session of a url. Tracks the position of the drop as |
277 // well as a window used to highlight where the drop occurs. | 278 // well as a window used to highlight where the drop occurs. |
278 struct DropInfo { | 279 struct DropInfo { |
279 DropInfo(int drop_index, | 280 DropInfo(int drop_index, |
280 bool drop_before, | 281 bool drop_before, |
281 bool point_down, | 282 bool point_down, |
282 views::Widget* context); | 283 views::Widget* context); |
283 ~DropInfo(); | 284 ~DropInfo(); |
284 | 285 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 bool immersive_style_; | 638 bool immersive_style_; |
638 | 639 |
639 // Our observers. | 640 // Our observers. |
640 typedef ObserverList<TabStripObserver> TabStripObservers; | 641 typedef ObserverList<TabStripObserver> TabStripObservers; |
641 TabStripObservers observers_; | 642 TabStripObservers observers_; |
642 | 643 |
643 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 644 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
644 }; | 645 }; |
645 | 646 |
646 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 647 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |