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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.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
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_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
170 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE; 170 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE;
171 virtual void MaybeStartDrag( 171 virtual void MaybeStartDrag(
172 BaseTab* tab, 172 BaseTab* tab,
173 const views::MouseEvent& event, 173 const views::MouseEvent& event,
174 const TabStripSelectionModel& original_selection) OVERRIDE; 174 const TabStripSelectionModel& original_selection) OVERRIDE;
175 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE; 175 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE;
176 virtual bool EndDrag(bool canceled) OVERRIDE; 176 virtual bool EndDrag(bool canceled) OVERRIDE;
177 virtual BaseTab* GetTabAt(BaseTab* tab, 177 virtual BaseTab* GetTabAt(BaseTab* tab,
178 const gfx::Point& tab_in_tab_coordinates) OVERRIDE; 178 const gfx::Point& tab_in_tab_coordinates) OVERRIDE;
179 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE; 179 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE;
180 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) OVERRIDE;
180 181
181 // MouseWatcherListener overrides: 182 // MouseWatcherListener overrides:
182 virtual void MouseMovedOutOfHost() OVERRIDE; 183 virtual void MouseMovedOutOfHost() OVERRIDE;
183 184
184 // views::View overrides: 185 // views::View overrides:
185 virtual void Layout() OVERRIDE; 186 virtual void Layout() OVERRIDE;
186 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 187 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE;
187 virtual std::string GetClassName() const OVERRIDE; 188 virtual std::string GetClassName() const OVERRIDE;
188 virtual gfx::Size GetPreferredSize() OVERRIDE; 189 virtual gfx::Size GetPreferredSize() OVERRIDE;
189 // NOTE: the drag and drop methods are invoked from FrameView. This is done 190 // NOTE: the drag and drop methods are invoked from FrameView. This is done
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // Size we last layed out at. 498 // Size we last layed out at.
498 gfx::Size last_layout_size_; 499 gfx::Size last_layout_size_;
499 500
500 // Only used while in touch mode. 501 // Only used while in touch mode.
501 scoped_ptr<TouchTabStripLayout> touch_layout_; 502 scoped_ptr<TouchTabStripLayout> touch_layout_;
502 503
503 DISALLOW_COPY_AND_ASSIGN(TabStrip); 504 DISALLOW_COPY_AND_ASSIGN(TabStrip);
504 }; 505 };
505 506
506 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 507 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698