| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Removes the drag source Tab from this TabStrip, and deletes it. | 83 // Removes the drag source Tab from this TabStrip, and deletes it. |
| 84 void DestroyDraggedSourceTab(Tab* tab); | 84 void DestroyDraggedSourceTab(Tab* tab); |
| 85 | 85 |
| 86 // Retrieve the ideal bounds for the Tab at the specified index. | 86 // Retrieve the ideal bounds for the Tab at the specified index. |
| 87 gfx::Rect GetIdealBounds(int index); | 87 gfx::Rect GetIdealBounds(int index); |
| 88 | 88 |
| 89 // Updates loading animations for the TabStrip. | 89 // Updates loading animations for the TabStrip. |
| 90 void UpdateLoadingAnimations(); | 90 void UpdateLoadingAnimations(); |
| 91 | 91 |
| 92 // views::View overrides: | 92 // views::View overrides: |
| 93 virtual void PaintChildren(ChromeCanvas* canvas); | 93 virtual void PaintChildren(gfx::Canvas* canvas); |
| 94 virtual views::View* GetViewByID(int id) const; | 94 virtual views::View* GetViewByID(int id) const; |
| 95 virtual void Layout(); | 95 virtual void Layout(); |
| 96 virtual gfx::Size GetPreferredSize(); | 96 virtual gfx::Size GetPreferredSize(); |
| 97 // NOTE: the drag and drop methods are invoked from FrameView. This is done to | 97 // NOTE: the drag and drop methods are invoked from FrameView. This is done to |
| 98 // allow for a drop region that extends outside the bounds of the TabStrip. | 98 // allow for a drop region that extends outside the bounds of the TabStrip. |
| 99 virtual void OnDragEntered(const views::DropTargetEvent& event); | 99 virtual void OnDragEntered(const views::DropTargetEvent& event); |
| 100 virtual int OnDragUpdated(const views::DropTargetEvent& event); | 100 virtual int OnDragUpdated(const views::DropTargetEvent& event); |
| 101 virtual void OnDragExited(); | 101 virtual void OnDragExited(); |
| 102 virtual int OnPerformDrop(const views::DropTargetEvent& event); | 102 virtual int OnPerformDrop(const views::DropTargetEvent& event); |
| 103 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 103 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 }; | 352 }; |
| 353 std::vector<TabData> tab_data_; | 353 std::vector<TabData> tab_data_; |
| 354 | 354 |
| 355 // The currently running animation. | 355 // The currently running animation. |
| 356 scoped_ptr<TabAnimation> active_animation_; | 356 scoped_ptr<TabAnimation> active_animation_; |
| 357 | 357 |
| 358 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); | 358 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); |
| 359 }; | 359 }; |
| 360 | 360 |
| 361 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 361 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
| OLD | NEW |