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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // View overrides. | 228 // View overrides. |
229 virtual const views::View* GetViewByID(int id) const OVERRIDE; | 229 virtual const views::View* GetViewByID(int id) const OVERRIDE; |
230 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 230 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
231 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 231 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
232 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 232 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
233 virtual void OnMouseCaptureLost() OVERRIDE; | 233 virtual void OnMouseCaptureLost() OVERRIDE; |
234 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 234 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
235 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 235 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
236 | 236 |
237 // ui::EventHandler overrides. | 237 // ui::EventHandler overrides. |
238 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 238 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
239 | 239 |
240 private: | 240 private: |
241 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; | 241 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; |
242 | 242 |
243 class RemoveTabDelegate; | 243 class RemoveTabDelegate; |
244 | 244 |
245 friend class TabDragController; | 245 friend class TabDragController; |
246 friend class TabDragControllerTest; | 246 friend class TabDragControllerTest; |
247 | 247 |
248 // Used during a drop session of a url. Tracks the position of the drop as | 248 // Used during a drop session of a url. Tracks the position of the drop as |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 // tab close comes from a touch device. | 594 // tab close comes from a touch device. |
595 base::OneShotTimer<TabStrip> resize_layout_timer_; | 595 base::OneShotTimer<TabStrip> resize_layout_timer_; |
596 | 596 |
597 // True if tabs are painted as rectangular light-bars. | 597 // True if tabs are painted as rectangular light-bars. |
598 bool immersive_style_; | 598 bool immersive_style_; |
599 | 599 |
600 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 600 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
601 }; | 601 }; |
602 | 602 |
603 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 603 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |