| 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_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" | 
| 10 #include "base/timer.h" | 10 #include "base/timer.h" | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 62   virtual void PrepareForCloseAt(int model_index); | 62   virtual void PrepareForCloseAt(int model_index); | 
| 63   virtual void RemoveTabAt(int model_index); | 63   virtual void RemoveTabAt(int model_index); | 
| 64   virtual void SelectTabAt(int old_model_index, int new_model_index); | 64   virtual void SelectTabAt(int old_model_index, int new_model_index); | 
| 65   virtual void TabTitleChangedNotLoading(int model_index); | 65   virtual void TabTitleChangedNotLoading(int model_index); | 
| 66   virtual void StartHighlight(int model_index); | 66   virtual void StartHighlight(int model_index); | 
| 67   virtual void StopAllHighlighting(); | 67   virtual void StopAllHighlighting(); | 
| 68   virtual BaseTab* CreateTabForDragging(); | 68   virtual BaseTab* CreateTabForDragging(); | 
| 69 | 69 | 
| 70   // views::View overrides: | 70   // views::View overrides: | 
| 71   virtual void PaintChildren(gfx::Canvas* canvas); | 71   virtual void PaintChildren(gfx::Canvas* canvas); | 
| 72   virtual views::View* GetViewByID(int id) const; | 72   virtual const views::View* GetViewByID(int id) const; | 
| 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 AccessibilityTypes::Role GetAccessibleRole(); | 80   virtual AccessibilityTypes::Role GetAccessibleRole(); | 
| 81   virtual views::View* GetViewForPoint(const gfx::Point& point); | 81   virtual views::View* GetViewForPoint(const gfx::Point& point); | 
| 82   virtual void OnThemeChanged(); | 82   virtual void OnThemeChanged(); | 
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 270 | 270 | 
| 271   // Used for stage 1 of new tab animation. | 271   // Used for stage 1 of new tab animation. | 
| 272   base::OneShotTimer<TabStrip> new_tab_timer_; | 272   base::OneShotTimer<TabStrip> new_tab_timer_; | 
| 273 | 273 | 
| 274   scoped_ptr<views::MouseWatcher> mouse_watcher_; | 274   scoped_ptr<views::MouseWatcher> mouse_watcher_; | 
| 275 | 275 | 
| 276   DISALLOW_COPY_AND_ASSIGN(TabStrip); | 276   DISALLOW_COPY_AND_ASSIGN(TabStrip); | 
| 277 }; | 277 }; | 
| 278 | 278 | 
| 279 #endif  // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 279 #endif  // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 
| OLD | NEW | 
|---|