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

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: cl format 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 void DragActiveTab(const std::vector<int>& initial_positions, int delta); 352 void DragActiveTab(const std::vector<int>& initial_positions, int delta);
353 353
354 // Sets the ideal bounds x-coordinates to |positions|. 354 // Sets the ideal bounds x-coordinates to |positions|.
355 void SetIdealBoundsFromPositions(const std::vector<int>& positions); 355 void SetIdealBoundsFromPositions(const std::vector<int>& positions);
356 356
357 // Stacks the dragged tabs. This is used if the drag operation is 357 // Stacks the dragged tabs. This is used if the drag operation is
358 // MOVE_VISIBLE_TABS and the tabs don't fill the tabstrip. When this happens 358 // MOVE_VISIBLE_TABS and the tabs don't fill the tabstrip. When this happens
359 // the active tab follows the mouse and the other tabs stack around it. 359 // the active tab follows the mouse and the other tabs stack around it.
360 void StackDraggedTabs(int delta); 360 void StackDraggedTabs(int delta);
361 361
362 // Returns true if dragging has resulted in temporarily stacking the tabs.
363 bool IsStackingDraggedTabs() const;
364
365 // Invoked during drag to layout the tabs being dragged in |tabs| at 362 // Invoked during drag to layout the tabs being dragged in |tabs| at
366 // |location|. If |initial_drag| is true, this is the initial layout after the 363 // |location|. If |initial_drag| is true, this is the initial layout after the
367 // user moved the mouse far enough to trigger a drag. 364 // user moved the mouse far enough to trigger a drag.
368 void LayoutDraggedTabsAt(const Tabs& tabs, 365 void LayoutDraggedTabsAt(const Tabs& tabs,
369 Tab* active_tab, 366 Tab* active_tab,
370 const gfx::Point& location, 367 const gfx::Point& location,
371 bool initial_drag); 368 bool initial_drag);
372 369
373 // Calculates the bounds needed for each of the tabs, placing the result in 370 // Calculates the bounds needed for each of the tabs, placing the result in
374 // |bounds|. 371 // |bounds|.
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 bool immersive_style_; 668 bool immersive_style_;
672 669
673 // Our observers. 670 // Our observers.
674 typedef base::ObserverList<TabStripObserver> TabStripObservers; 671 typedef base::ObserverList<TabStripObserver> TabStripObservers;
675 TabStripObservers observers_; 672 TabStripObservers observers_;
676 673
677 DISALLOW_COPY_AND_ASSIGN(TabStrip); 674 DISALLOW_COPY_AND_ASSIGN(TabStrip);
678 }; 675 };
679 676
680 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 677 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698