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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 212 |
213 void set_ideal_bounds(int index, const gfx::Rect& bounds) { | 213 void set_ideal_bounds(int index, const gfx::Rect& bounds) { |
214 tabs_.set_ideal_bounds(index, bounds); | 214 tabs_.set_ideal_bounds(index, bounds); |
215 } | 215 } |
216 | 216 |
217 // Returns the number of mini-tabs. | 217 // Returns the number of mini-tabs. |
218 int GetMiniTabCount() const; | 218 int GetMiniTabCount() const; |
219 | 219 |
220 // views::ButtonListener implementation: | 220 // views::ButtonListener implementation: |
221 virtual void ButtonPressed(views::Button* sender, | 221 virtual void ButtonPressed(views::Button* sender, |
222 const views::Event& event) OVERRIDE; | 222 const ui::Event& event) OVERRIDE; |
223 | 223 |
224 // View overrides. | 224 // View overrides. |
225 virtual const views::View* GetViewByID(int id) const OVERRIDE; | 225 virtual const views::View* GetViewByID(int id) const OVERRIDE; |
226 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 226 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
227 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 227 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
228 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 228 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
229 virtual void OnMouseCaptureLost() OVERRIDE; | 229 virtual void OnMouseCaptureLost() OVERRIDE; |
230 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | 230 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; |
231 virtual ui::GestureStatus OnGestureEvent( | 231 virtual ui::GestureStatus OnGestureEvent( |
232 const views::GestureEvent& event) OVERRIDE; | 232 const views::GestureEvent& event) OVERRIDE; |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // Time of the last mouse move event. | 539 // Time of the last mouse move event. |
540 base::TimeTicks last_mouse_move_time_; | 540 base::TimeTicks last_mouse_move_time_; |
541 | 541 |
542 // Number of mouse moves. | 542 // Number of mouse moves. |
543 int mouse_move_count_; | 543 int mouse_move_count_; |
544 | 544 |
545 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 545 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
546 }; | 546 }; |
547 | 547 |
548 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 548 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |