OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/animation_container.h" | 8 #include "app/animation_container.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 int GetAvailableWidthForTabs(Tab* last_tab) const; | 304 int GetAvailableWidthForTabs(Tab* last_tab) const; |
305 | 305 |
306 // Returns true if the specified point in TabStrip coords is within the | 306 // Returns true if the specified point in TabStrip coords is within the |
307 // hit-test region of the specified Tab. | 307 // hit-test region of the specified Tab. |
308 bool IsPointInTab(Tab* tab, const gfx::Point& point_in_tabstrip_coords); | 308 bool IsPointInTab(Tab* tab, const gfx::Point& point_in_tabstrip_coords); |
309 | 309 |
310 // Called from the message loop observer when a mouse movement has occurred | 310 // Called from the message loop observer when a mouse movement has occurred |
311 // anywhere over our containing window. | 311 // anywhere over our containing window. |
312 void HandleGlobalMouseMoveEvent(); | 312 void HandleGlobalMouseMoveEvent(); |
313 | 313 |
314 // Returns true if any of the tabs are phantom. | |
315 bool HasPhantomTabs() const; | |
316 | |
317 // -- Member Variables ------------------------------------------------------ | 314 // -- Member Variables ------------------------------------------------------ |
318 | 315 |
319 // A factory that is used to construct a delayed callback to the | 316 // A factory that is used to construct a delayed callback to the |
320 // ResizeLayoutTabsNow method. | 317 // ResizeLayoutTabsNow method. |
321 ScopedRunnableMethodFactory<TabStrip> resize_layout_factory_; | 318 ScopedRunnableMethodFactory<TabStrip> resize_layout_factory_; |
322 | 319 |
323 // True if the TabStrip has already been added as a MessageLoop observer. | 320 // True if the TabStrip has already been added as a MessageLoop observer. |
324 bool added_as_message_loop_observer_; | 321 bool added_as_message_loop_observer_; |
325 | 322 |
326 // The "New Tab" button. | 323 // The "New Tab" button. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 // Whether the new tab button is being displayed. | 369 // Whether the new tab button is being displayed. |
373 bool new_tab_button_enabled_; | 370 bool new_tab_button_enabled_; |
374 | 371 |
375 // If true, we're cancelling the animation. | 372 // If true, we're cancelling the animation. |
376 bool cancelling_animation_; | 373 bool cancelling_animation_; |
377 | 374 |
378 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 375 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
379 }; | 376 }; |
380 | 377 |
381 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ | 378 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |