| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // AbstractTabStripView implementation: | 170 // AbstractTabStripView implementation: |
| 171 virtual bool IsTabStripEditable() const OVERRIDE; | 171 virtual bool IsTabStripEditable() const OVERRIDE; |
| 172 virtual bool IsTabStripCloseable() const OVERRIDE; | 172 virtual bool IsTabStripCloseable() const OVERRIDE; |
| 173 virtual void UpdateLoadingAnimations() OVERRIDE; | 173 virtual void UpdateLoadingAnimations() OVERRIDE; |
| 174 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; | 174 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; |
| 175 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; | 175 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; |
| 176 virtual views::View* GetNewTabButton() OVERRIDE; | 176 virtual views::View* GetNewTabButton() OVERRIDE; |
| 177 | 177 |
| 178 // views::View overrides: | 178 // views::View overrides: |
| 179 virtual void Layout() OVERRIDE; | 179 virtual void Layout() OVERRIDE; |
| 180 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; | 180 virtual void PaintChildren(gfx::CanvasSkia* canvas) OVERRIDE; |
| 181 virtual gfx::Size GetPreferredSize() OVERRIDE; | 181 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 182 // NOTE: the drag and drop methods are invoked from FrameView. This is done | 182 // NOTE: the drag and drop methods are invoked from FrameView. This is done |
| 183 // to allow for a drop region that extends outside the bounds of the TabStrip. | 183 // to allow for a drop region that extends outside the bounds of the TabStrip. |
| 184 virtual void OnDragEntered(const views::DropTargetEvent& event) OVERRIDE; | 184 virtual void OnDragEntered(const views::DropTargetEvent& event) OVERRIDE; |
| 185 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; | 185 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; |
| 186 virtual void OnDragExited() OVERRIDE; | 186 virtual void OnDragExited() OVERRIDE; |
| 187 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; | 187 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; |
| 188 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 188 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 189 virtual views::View* GetEventHandlerForPoint( | 189 virtual views::View* GetEventHandlerForPoint( |
| 190 const gfx::Point& point) OVERRIDE; | 190 const gfx::Point& point) OVERRIDE; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // Size we last layed out at. | 499 // Size we last layed out at. |
| 500 gfx::Size last_layout_size_; | 500 gfx::Size last_layout_size_; |
| 501 | 501 |
| 502 // Are we in stacking/scrolling mode? | 502 // Are we in stacking/scrolling mode? |
| 503 bool stacking_; | 503 bool stacking_; |
| 504 | 504 |
| 505 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 505 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 506 }; | 506 }; |
| 507 | 507 |
| 508 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 508 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |