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

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

Issue 1393193002: Paint tab-loading throbbers into a ui::Layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clipping on the right, and animations Created 5 years, 2 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
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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 void DragActiveTab(const std::vector<int>& initial_positions, int delta); 336 void DragActiveTab(const std::vector<int>& initial_positions, int delta);
337 337
338 // Sets the ideal bounds x-coordinates to |positions|. 338 // Sets the ideal bounds x-coordinates to |positions|.
339 void SetIdealBoundsFromPositions(const std::vector<int>& positions); 339 void SetIdealBoundsFromPositions(const std::vector<int>& positions);
340 340
341 // Stacks the dragged tabs. This is used if the drag operation is 341 // Stacks the dragged tabs. This is used if the drag operation is
342 // MOVE_VISIBLE_TABS and the tabs don't fill the tabstrip. When this happens 342 // MOVE_VISIBLE_TABS and the tabs don't fill the tabstrip. When this happens
343 // the active tab follows the mouse and the other tabs stack around it. 343 // the active tab follows the mouse and the other tabs stack around it.
344 void StackDraggedTabs(int delta); 344 void StackDraggedTabs(int delta);
345 345
346 // Returns true if dragging has resulted in temporarily stacking the tabs.
347 bool IsStackingDraggedTabs() const;
348
349 // Invoked during drag to layout the tabs being dragged in |tabs| at 346 // Invoked during drag to layout the tabs being dragged in |tabs| at
350 // |location|. If |initial_drag| is true, this is the initial layout after the 347 // |location|. If |initial_drag| is true, this is the initial layout after the
351 // user moved the mouse far enough to trigger a drag. 348 // user moved the mouse far enough to trigger a drag.
352 void LayoutDraggedTabsAt(const Tabs& tabs, 349 void LayoutDraggedTabsAt(const Tabs& tabs,
353 Tab* active_tab, 350 Tab* active_tab,
354 const gfx::Point& location, 351 const gfx::Point& location,
355 bool initial_drag); 352 bool initial_drag);
356 353
357 // Calculates the bounds needed for each of the tabs, placing the result in 354 // Calculates the bounds needed for each of the tabs, placing the result in
358 // |bounds|. 355 // |bounds|.
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 bool immersive_style_; 636 bool immersive_style_;
640 637
641 // Our observers. 638 // Our observers.
642 typedef base::ObserverList<TabStripObserver> TabStripObservers; 639 typedef base::ObserverList<TabStripObserver> TabStripObservers;
643 TabStripObservers observers_; 640 TabStripObservers observers_;
644 641
645 DISALLOW_COPY_AND_ASSIGN(TabStrip); 642 DISALLOW_COPY_AND_ASSIGN(TabStrip);
646 }; 643 };
647 644
648 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 645 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698