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

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

Issue 6750007: Scrolling Tabs (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressing Scott's review comments Created 9 years, 8 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Invoked prior to starting a new animation. 233 // Invoked prior to starting a new animation.
234 virtual void PrepareForAnimation(); 234 virtual void PrepareForAnimation();
235 235
236 // Creates an AnimationDelegate that resets state after a remove animation 236 // Creates an AnimationDelegate that resets state after a remove animation
237 // completes. The caller owns the returned object. 237 // completes. The caller owns the returned object.
238 ui::AnimationDelegate* CreateRemoveTabDelegate(BaseTab* tab); 238 ui::AnimationDelegate* CreateRemoveTabDelegate(BaseTab* tab);
239 239
240 // Invoked from Layout if the size changes or layout is really needed. 240 // Invoked from Layout if the size changes or layout is really needed.
241 virtual void DoLayout(); 241 virtual void DoLayout();
242 242
243 // Get tab at a point in local view coordinates.
244 BaseTab* GetTabAtLocal(const gfx::Point& local_point);
245
243 private: 246 private:
244 class RemoveTabDelegate; 247 class RemoveTabDelegate;
245 248
246 friend class DraggedTabController; 249 friend class DraggedTabController;
247 250
248 // Invoked from StoppedDraggingTabs to cleanup |tab|. If |tab| is known 251 // Invoked from StoppedDraggingTabs to cleanup |tab|. If |tab| is known
249 // |is_first_tab| is set to true. 252 // |is_first_tab| is set to true.
250 void StoppedDraggingTab(BaseTab* tab, bool* is_first_tab); 253 void StoppedDraggingTab(BaseTab* tab, bool* is_first_tab);
251 254
252 // See description above field for details. 255 // See description above field for details.
(...skipping 13 matching lines...) Expand all
266 // model. 269 // model.
267 bool attaching_dragged_tab_; 270 bool attaching_dragged_tab_;
268 271
269 views::BoundsAnimator bounds_animator_; 272 views::BoundsAnimator bounds_animator_;
270 273
271 // Size we last layed out at. 274 // Size we last layed out at.
272 gfx::Size last_layout_size_; 275 gfx::Size last_layout_size_;
273 }; 276 };
274 277
275 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 278 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/tabs/touch_tab_strip.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