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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // ui::EventHandler overrides. | 256 // ui::EventHandler overrides. |
257 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 257 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
258 | 258 |
259 private: | 259 private: |
260 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; | 260 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; |
261 | 261 |
262 class RemoveTabDelegate; | 262 class RemoveTabDelegate; |
263 | 263 |
264 friend class TabDragController; | 264 friend class TabDragController; |
265 friend class TabDragControllerTest; | 265 friend class TabDragControllerTest; |
| 266 friend class TabStripTest; |
| 267 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); |
266 | 268 |
267 // Used during a drop session of a url. Tracks the position of the drop as | 269 // Used during a drop session of a url. Tracks the position of the drop as |
268 // well as a window used to highlight where the drop occurs. | 270 // well as a window used to highlight where the drop occurs. |
269 struct DropInfo { | 271 struct DropInfo { |
270 DropInfo(int drop_index, | 272 DropInfo(int drop_index, |
271 bool drop_before, | 273 bool drop_before, |
272 bool point_down, | 274 bool point_down, |
273 views::Widget* context); | 275 views::Widget* context); |
274 ~DropInfo(); | 276 ~DropInfo(); |
275 | 277 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 bool immersive_style_; | 624 bool immersive_style_; |
623 | 625 |
624 // Our observers. | 626 // Our observers. |
625 typedef ObserverList<TabStripObserver> TabStripObservers; | 627 typedef ObserverList<TabStripObserver> TabStripObservers; |
626 TabStripObservers observers_; | 628 TabStripObservers observers_; |
627 | 629 |
628 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 630 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
629 }; | 631 }; |
630 | 632 |
631 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 633 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |