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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clang build fix. After commit/revert. Created 9 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) 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_BASE_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual bool IsActiveTab(const BaseTab* tab) const OVERRIDE; 126 virtual bool IsActiveTab(const BaseTab* tab) const OVERRIDE;
127 virtual bool IsTabSelected(const BaseTab* tab) const OVERRIDE; 127 virtual bool IsTabSelected(const BaseTab* tab) const OVERRIDE;
128 virtual bool IsTabPinned(const BaseTab* tab) const OVERRIDE; 128 virtual bool IsTabPinned(const BaseTab* tab) const OVERRIDE;
129 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE; 129 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE;
130 virtual void MaybeStartDrag(BaseTab* tab, 130 virtual void MaybeStartDrag(BaseTab* tab,
131 const views::MouseEvent& event) OVERRIDE; 131 const views::MouseEvent& event) OVERRIDE;
132 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE; 132 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE;
133 virtual bool EndDrag(bool canceled) OVERRIDE; 133 virtual bool EndDrag(bool canceled) OVERRIDE;
134 virtual BaseTab* GetTabAt(BaseTab* tab, 134 virtual BaseTab* GetTabAt(BaseTab* tab,
135 const gfx::Point& tab_in_tab_coordinates) OVERRIDE; 135 const gfx::Point& tab_in_tab_coordinates) OVERRIDE;
136 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE;
136 137
137 // View overrides: 138 // View overrides:
138 virtual void Layout() OVERRIDE; 139 virtual void Layout() OVERRIDE;
139 140
140 protected: 141 protected:
141 // The Tabs we contain, and their last generated "good" bounds. 142 // The Tabs we contain, and their last generated "good" bounds.
142 struct TabData { 143 struct TabData {
143 BaseTab* tab; 144 BaseTab* tab;
144 gfx::Rect ideal_bounds; 145 gfx::Rect ideal_bounds;
145 }; 146 };
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // model. 276 // model.
276 bool attaching_dragged_tab_; 277 bool attaching_dragged_tab_;
277 278
278 views::BoundsAnimator bounds_animator_; 279 views::BoundsAnimator bounds_animator_;
279 280
280 // Size we last layed out at. 281 // Size we last layed out at.
281 gfx::Size last_layout_size_; 282 gfx::Size last_layout_size_;
282 }; 283 };
283 284
284 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 285 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/base_tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698