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_ABSTRACT_TAB_STRIP_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_ABSTRACT_TAB_STRIP_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_ABSTRACT_TAB_STRIP_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_ABSTRACT_TAB_STRIP_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/view.h" | 9 #include "ui/views/view.h" |
10 | 10 |
11 // This interface is the way the browser view sees a tab strip's view. | 11 // This interface is the way the browser view sees a tab strip's view. |
12 class AbstractTabStripView : public views::View { | 12 class AbstractTabStripView : public views::View { |
13 public: | 13 public: |
14 virtual ~AbstractTabStripView() {} | 14 virtual ~AbstractTabStripView() {} |
15 | 15 |
16 // Returns true if the tab strip is editable. | 16 // Returns true if the tab strip is editable. |
17 // Returns false if the tab strip is being dragged or animated to prevent | 17 // Returns false if the tab strip is being dragged or animated to prevent |
18 // extensions from messing things up while that's happening. | 18 // extensions from messing things up while that's happening. |
19 virtual bool IsTabStripEditable() const = 0; | 19 virtual bool IsTabStripEditable() const = 0; |
(...skipping 11 matching lines...) Expand all Loading... |
31 virtual bool IsPositionInWindowCaption(const gfx::Point& point) = 0; | 31 virtual bool IsPositionInWindowCaption(const gfx::Point& point) = 0; |
32 | 32 |
33 // Set the background offset used by inactive tabs to match the frame image. | 33 // Set the background offset used by inactive tabs to match the frame image. |
34 virtual void SetBackgroundOffset(const gfx::Point& offset) = 0; | 34 virtual void SetBackgroundOffset(const gfx::Point& offset) = 0; |
35 | 35 |
36 // Returns the new tab button, or NULL if there isn't one. | 36 // Returns the new tab button, or NULL if there isn't one. |
37 virtual views::View* GetNewTabButton() = 0; | 37 virtual views::View* GetNewTabButton() = 0; |
38 }; | 38 }; |
39 | 39 |
40 #endif // CHROME_BROWSER_UI_VIEWS_TABS_ABSTRACT_TAB_STRIP_VIEW_H_ | 40 #endif // CHROME_BROWSER_UI_VIEWS_TABS_ABSTRACT_TAB_STRIP_VIEW_H_ |
OLD | NEW |