| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual void Layout(); | 72 virtual void Layout(); |
| 73 virtual gfx::Size GetPreferredSize(); | 73 virtual gfx::Size GetPreferredSize(); |
| 74 // NOTE: the drag and drop methods are invoked from FrameView. This is done to | 74 // NOTE: the drag and drop methods are invoked from FrameView. This is done to |
| 75 // allow for a drop region that extends outside the bounds of the TabStrip. | 75 // allow for a drop region that extends outside the bounds of the TabStrip. |
| 76 virtual void OnDragEntered(const views::DropTargetEvent& event); | 76 virtual void OnDragEntered(const views::DropTargetEvent& event); |
| 77 virtual int OnDragUpdated(const views::DropTargetEvent& event); | 77 virtual int OnDragUpdated(const views::DropTargetEvent& event); |
| 78 virtual void OnDragExited(); | 78 virtual void OnDragExited(); |
| 79 virtual int OnPerformDrop(const views::DropTargetEvent& event); | 79 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 80 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 80 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| 81 virtual views::View* GetViewForPoint(const gfx::Point& point); | 81 virtual views::View* GetViewForPoint(const gfx::Point& point); |
| 82 virtual void ThemeChanged(); | 82 virtual void OnThemeChanged(); |
| 83 | 83 |
| 84 protected: | 84 protected: |
| 85 // BaseTabStrip overrides: | 85 // BaseTabStrip overrides: |
| 86 virtual BaseTab* CreateTab(); | 86 virtual BaseTab* CreateTab(); |
| 87 virtual void StartInsertTabAnimation(int model_index, bool foreground); | 87 virtual void StartInsertTabAnimation(int model_index, bool foreground); |
| 88 virtual void StartMoveTabAnimation(); | 88 virtual void StartMoveTabAnimation(); |
| 89 virtual void AnimateToIdealBounds(); | 89 virtual void AnimateToIdealBounds(); |
| 90 virtual bool ShouldHighlightCloseButtonAfterRemove(); | 90 virtual bool ShouldHighlightCloseButtonAfterRemove(); |
| 91 | 91 |
| 92 // views::View implementation: | 92 // views::View implementation: |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // container. This is that animation container. | 299 // container. This is that animation container. |
| 300 scoped_refptr<AnimationContainer> animation_container_; | 300 scoped_refptr<AnimationContainer> animation_container_; |
| 301 | 301 |
| 302 // Used for stage 1 of new tab animation. | 302 // Used for stage 1 of new tab animation. |
| 303 base::OneShotTimer<TabStrip> new_tab_timer_; | 303 base::OneShotTimer<TabStrip> new_tab_timer_; |
| 304 | 304 |
| 305 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 305 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ | 308 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |