| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_TABS_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ |
| 7 | 7 |
| 8 #include "base/gfx/point.h" | 8 #include "base/gfx/point.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/tabs/tab_strip_model.h" | 10 #include "chrome/browser/tabs/tab_strip_model.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // in response to dragged tabs. | 39 // in response to dragged tabs. |
| 40 // | 40 // |
| 41 /////////////////////////////////////////////////////////////////////////////// | 41 /////////////////////////////////////////////////////////////////////////////// |
| 42 class TabStrip : public views::View, | 42 class TabStrip : public views::View, |
| 43 public TabStripModelObserver, | 43 public TabStripModelObserver, |
| 44 public Tab::TabDelegate, | 44 public Tab::TabDelegate, |
| 45 public views::ButtonListener, | 45 public views::ButtonListener, |
| 46 public MessageLoopForUI::Observer, | 46 public MessageLoopForUI::Observer, |
| 47 public TabStripWrapper { | 47 public TabStripWrapper { |
| 48 public: | 48 public: |
| 49 TabStrip(TabStripModel* model); | 49 explicit TabStrip(TabStripModel* model); |
| 50 virtual ~TabStrip(); | 50 virtual ~TabStrip(); |
| 51 | 51 |
| 52 // Returns true if the TabStrip can accept input events. This returns false | 52 // Returns true if the TabStrip can accept input events. This returns false |
| 53 // when the TabStrip is animating to a new state and as such the user should | 53 // when the TabStrip is animating to a new state and as such the user should |
| 54 // not be allowed to interact with the TabStrip. | 54 // not be allowed to interact with the TabStrip. |
| 55 bool CanProcessInputEvents() const; | 55 bool CanProcessInputEvents() const; |
| 56 | 56 |
| 57 // Accessors for the model and individual Tabs. | 57 // Accessors for the model and individual Tabs. |
| 58 TabStripModel* model() { return model_; } | 58 TabStripModel* model() { return model_; } |
| 59 | 59 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 }; | 395 }; |
| 396 std::vector<TabData> tab_data_; | 396 std::vector<TabData> tab_data_; |
| 397 | 397 |
| 398 // The currently running animation. | 398 // The currently running animation. |
| 399 scoped_ptr<TabAnimation> active_animation_; | 399 scoped_ptr<TabAnimation> active_animation_; |
| 400 | 400 |
| 401 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 401 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 402 }; | 402 }; |
| 403 | 403 |
| 404 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ | 404 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |