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

Side by Side Diff: chrome/browser/ui/gtk/tabs/tab_strip_gtk.h

Issue 8568026: GTK: Always relayout the tab strip when the tab strip bounds change. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: coalesce calls Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GTK_TABS_TAB_STRIP_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <vector> 10 #include <vector>
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 scoped_ptr<DropInfo> drop_info_; 476 scoped_ptr<DropInfo> drop_info_;
477 477
478 // The controller for a drag initiated from a Tab. Valid for the lifetime of 478 // The controller for a drag initiated from a Tab. Valid for the lifetime of
479 // the drag session. 479 // the drag session.
480 scoped_ptr<DraggedTabControllerGtk> drag_controller_; 480 scoped_ptr<DraggedTabControllerGtk> drag_controller_;
481 481
482 // A factory that is used to construct a delayed callback to the 482 // A factory that is used to construct a delayed callback to the
483 // ResizeLayoutTabsNow method. 483 // ResizeLayoutTabsNow method.
484 base::WeakPtrFactory<TabStripGtk> weak_factory_; 484 base::WeakPtrFactory<TabStripGtk> weak_factory_;
485 485
486 // A different factory for calls to Layout().
487 base::WeakPtrFactory<TabStripGtk> layout_factory_;
488
486 // True if the tabstrip has already been added as a MessageLoop observer. 489 // True if the tabstrip has already been added as a MessageLoop observer.
487 bool added_as_message_loop_observer_; 490 bool added_as_message_loop_observer_;
488 491
489 // Helper for performing tab selection as a result of dragging over a tab. 492 // Helper for performing tab selection as a result of dragging over a tab.
490 HoverTabSelector hover_tab_selector_; 493 HoverTabSelector hover_tab_selector_;
491 494
492 content::NotificationRegistrar registrar_; 495 content::NotificationRegistrar registrar_;
493 496
494 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 497 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
495 }; 498 };
496 499
497 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 500 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698