| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 233   // Invoked prior to starting a new animation. | 233   // Invoked prior to starting a new animation. | 
| 234   virtual void PrepareForAnimation(); | 234   virtual void PrepareForAnimation(); | 
| 235 | 235 | 
| 236   // Creates an AnimationDelegate that resets state after a remove animation | 236   // Creates an AnimationDelegate that resets state after a remove animation | 
| 237   // completes. The caller owns the returned object. | 237   // completes. The caller owns the returned object. | 
| 238   ui::AnimationDelegate* CreateRemoveTabDelegate(BaseTab* tab); | 238   ui::AnimationDelegate* CreateRemoveTabDelegate(BaseTab* tab); | 
| 239 | 239 | 
| 240   // Invoked from Layout if the size changes or layout is really needed. | 240   // Invoked from Layout if the size changes or layout is really needed. | 
| 241   virtual void DoLayout(); | 241   virtual void DoLayout(); | 
| 242 | 242 | 
|  | 243   // Get tab at a point in local view coordinates. | 
|  | 244   BaseTab* GetTabAtLocal(const gfx::Point& local_point); | 
|  | 245 | 
| 243  private: | 246  private: | 
| 244   class RemoveTabDelegate; | 247   class RemoveTabDelegate; | 
| 245 | 248 | 
| 246   friend class DraggedTabController; | 249   friend class DraggedTabController; | 
| 247 | 250 | 
| 248   // Invoked from StoppedDraggingTabs to cleanup |tab|. If |tab| is known | 251   // Invoked from StoppedDraggingTabs to cleanup |tab|. If |tab| is known | 
| 249   // |is_first_tab| is set to true. | 252   // |is_first_tab| is set to true. | 
| 250   void StoppedDraggingTab(BaseTab* tab, bool* is_first_tab); | 253   void StoppedDraggingTab(BaseTab* tab, bool* is_first_tab); | 
| 251 | 254 | 
| 252   // See description above field for details. | 255   // See description above field for details. | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 266   // model. | 269   // model. | 
| 267   bool attaching_dragged_tab_; | 270   bool attaching_dragged_tab_; | 
| 268 | 271 | 
| 269   views::BoundsAnimator bounds_animator_; | 272   views::BoundsAnimator bounds_animator_; | 
| 270 | 273 | 
| 271   // Size we last layed out at. | 274   // Size we last layed out at. | 
| 272   gfx::Size last_layout_size_; | 275   gfx::Size last_layout_size_; | 
| 273 }; | 276 }; | 
| 274 | 277 | 
| 275 #endif  // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 278 #endif  // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 
| OLD | NEW | 
|---|