Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/ui/views/tabs/tab_controller.h

Issue 10407110: Adds clipping to the tabs when stacked. This is necessary so we don't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 class TabStripSelectionModel; 10 class TabStripSelectionModel;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Returns the tab that contains the specified coordinates, in terms of |tab|, 72 // Returns the tab that contains the specified coordinates, in terms of |tab|,
73 // or NULL if there is no tab that contains the specified point. 73 // or NULL if there is no tab that contains the specified point.
74 virtual BaseTab* GetTabAt(BaseTab* tab, 74 virtual BaseTab* GetTabAt(BaseTab* tab,
75 const gfx::Point& tab_in_tab_coordinates) = 0; 75 const gfx::Point& tab_in_tab_coordinates) = 0;
76 76
77 // Informs that an active tab is selected when already active (ie - clicked 77 // Informs that an active tab is selected when already active (ie - clicked
78 // when already active/foreground). 78 // when already active/foreground).
79 virtual void ClickActiveTab(const BaseTab* tab) const = 0; 79 virtual void ClickActiveTab(const BaseTab* tab) const = 0;
80 80
81 // Returns true if |tab| needs to be painted. If false is returned the tab is
82 // not painted. If true is returned the tab should be painted and |clip| is
83 // set to the clip (if |clip| is empty means no clip).
84 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0;
85
81 protected: 86 protected:
82 virtual ~TabController() {} 87 virtual ~TabController() {}
83 }; 88 };
84 89
85 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 90 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698