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

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 reviewer issues 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Invoked prior to starting a new animation. 237 // Invoked prior to starting a new animation.
238 virtual void PrepareForAnimation(); 238 virtual void PrepareForAnimation();
239 239
240 // Creates an AnimationDelegate that resets state after a remove animation 240 // Creates an AnimationDelegate that resets state after a remove animation
241 // completes. The caller owns the returned object. 241 // completes. The caller owns the returned object.
242 ui::AnimationDelegate* CreateRemoveTabDelegate(BaseTab* tab); 242 ui::AnimationDelegate* CreateRemoveTabDelegate(BaseTab* tab);
243 243
244 // Invoked from Layout if the size changes or layout is really needed. 244 // Invoked from Layout if the size changes or layout is really needed.
245 virtual void DoLayout(); 245 virtual void DoLayout();
246 246
247 // Get tab at a point in local view coordinates.
248 BaseTab* GetTabAtLocal(const gfx::Point& local_point);
249
247 private: 250 private:
248 class RemoveTabDelegate; 251 class RemoveTabDelegate;
249 252
250 friend class DraggedTabController; 253 friend class DraggedTabController;
251 254
252 // Invoked from StoppedDraggingTabs to cleanup |tab|. If |tab| is known 255 // Invoked from StoppedDraggingTabs to cleanup |tab|. If |tab| is known
253 // |is_first_tab| is set to true. 256 // |is_first_tab| is set to true.
254 void StoppedDraggingTab(BaseTab* tab, bool* is_first_tab); 257 void StoppedDraggingTab(BaseTab* tab, bool* is_first_tab);
255 258
256 // See description above field for details. 259 // See description above field for details.
(...skipping 13 matching lines...) Expand all
270 // model. 273 // model.
271 bool attaching_dragged_tab_; 274 bool attaching_dragged_tab_;
272 275
273 views::BoundsAnimator bounds_animator_; 276 views::BoundsAnimator bounds_animator_;
274 277
275 // Size we last layed out at. 278 // Size we last layed out at.
276 gfx::Size last_layout_size_; 279 gfx::Size last_layout_size_;
277 }; 280 };
278 281
279 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 282 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698