| 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class BaseTab; | 9 class BaseTab; |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way | 58 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way |
| 59 // other than the user releasing the mouse. Returns whether the tab has been | 59 // other than the user releasing the mouse. Returns whether the tab has been |
| 60 // destroyed. | 60 // destroyed. |
| 61 virtual bool EndDrag(bool canceled) = 0; | 61 virtual bool EndDrag(bool canceled) = 0; |
| 62 | 62 |
| 63 // Returns the tab that contains the specified coordinates, in terms of |tab|, | 63 // Returns the tab that contains the specified coordinates, in terms of |tab|, |
| 64 // or NULL if there is no tab that contains the specified point. | 64 // or NULL if there is no tab that contains the specified point. |
| 65 virtual BaseTab* GetTabAt(BaseTab* tab, | 65 virtual BaseTab* GetTabAt(BaseTab* tab, |
| 66 const gfx::Point& tab_in_tab_coordinates) = 0; | 66 const gfx::Point& tab_in_tab_coordinates) = 0; |
| 67 | 67 |
| 68 // Informs that an active tab is selected when already active (ie - clicked |
| 69 // when already active/foreground). |
| 70 virtual void ClickActiveTab(const BaseTab* tab) const = 0; |
| 71 |
| 68 protected: | 72 protected: |
| 69 virtual ~TabController() {} | 73 virtual ~TabController() {} |
| 70 }; | 74 }; |
| 71 | 75 |
| 72 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 76 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
| OLD | NEW |