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 "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
10 #include "chrome/browser/views/tabs/tab.h" | 10 #include "chrome/browser/views/tabs/tab.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Returns true if the TabStrip can accept input events. This returns false | 60 // Returns true if the TabStrip can accept input events. This returns false |
61 // when the TabStrip is animating to a new state and as such the user should | 61 // when the TabStrip is animating to a new state and as such the user should |
62 // not be allowed to interact with the TabStrip. | 62 // not be allowed to interact with the TabStrip. |
63 bool CanProcessInputEvents() const; | 63 bool CanProcessInputEvents() const; |
64 | 64 |
65 // Returns true if the specified point (in TabStrip coordinates) is within a | 65 // Returns true if the specified point (in TabStrip coordinates) is within a |
66 // portion of the TabStrip that should be treated as the containing Window's | 66 // portion of the TabStrip that should be treated as the containing Window's |
67 // titlebar for dragging purposes. | 67 // titlebar for dragging purposes. |
68 // TODO(beng): (Cleanup) should be const, but GetViewForPoint isn't, so fie! | 68 // TODO(beng): (Cleanup) should be const, but GetViewForPoint isn't, so fie! |
69 bool PointIsWithinWindowCaption(const CPoint& point); | 69 bool PointIsWithinWindowCaption(const gfx::Point& point); |
70 | 70 |
71 // Return true if this tab strip is compatible with the provided tab strip. | 71 // Return true if this tab strip is compatible with the provided tab strip. |
72 // Compatible tab strips can transfer tabs during drag and drop. | 72 // Compatible tab strips can transfer tabs during drag and drop. |
73 bool IsCompatibleWith(TabStrip* other); | 73 bool IsCompatibleWith(TabStrip* other); |
74 | 74 |
75 // Returns true if Tabs in this TabStrip are currently changing size or | 75 // Returns true if Tabs in this TabStrip are currently changing size or |
76 // position. | 76 // position. |
77 bool IsAnimating() const; | 77 bool IsAnimating() const; |
78 | 78 |
79 // Accessors for the model and individual Tabs. | 79 // Accessors for the model and individual Tabs. |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 std::vector<TabData> tab_data_; | 364 std::vector<TabData> tab_data_; |
365 | 365 |
366 // The currently running animation. | 366 // The currently running animation. |
367 scoped_ptr<TabAnimation> active_animation_; | 367 scoped_ptr<TabAnimation> active_animation_; |
368 | 368 |
369 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); | 369 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); |
370 }; | 370 }; |
371 | 371 |
372 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 372 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
373 | 373 |
OLD | NEW |