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

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

Issue 8771014: GTK: Cleanup of TabStripGtk::ResizeLayoutTabs() now that the layout is fixed. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 int mini_tab_count, 326 int mini_tab_count,
327 double* unselected_width, 327 double* unselected_width,
328 double* selected_width) const; 328 double* selected_width) const;
329 329
330 // Returns the horizontal offset before the tab at |tab_index|. 330 // Returns the horizontal offset before the tab at |tab_index|.
331 int GetTabHOffset(int tab_index); 331 int GetTabHOffset(int tab_index);
332 332
333 // Returns the x-coordinate tabs start from. 333 // Returns the x-coordinate tabs start from.
334 int tab_start_x() const; 334 int tab_start_x() const;
335 335
336 // Perform an animated resize-relayout of the TabStrip immediately. The 336 // Perform an animated resize-relayout of the TabStrip immediately.
337 // value returned indicates whether a resize actually took place. 337 void ResizeLayoutTabs();
338 bool ResizeLayoutTabs();
339
340 // See ResizeLayoutTabs. Does not return success or failure. Necessitated by
341 // base::Bind and friends, which cannot handle a WeakPtr for a closure that
342 // has a return value.
343 void ResizeLayoutTabsWithoutResult();
344 338
345 // Returns whether or not the cursor is currently in the "tab strip zone" 339 // Returns whether or not the cursor is currently in the "tab strip zone"
346 // which is defined as the region above the TabStrip and a bit below it. 340 // which is defined as the region above the TabStrip and a bit below it.
347 bool IsCursorInTabStripZone() const; 341 bool IsCursorInTabStripZone() const;
348 342
349 // Reset the Z-ordering of tabs. 343 // Reset the Z-ordering of tabs.
350 void ReStack(); 344 void ReStack();
351 345
352 // Ensure that the message loop observer used for event spying is added and 346 // Ensure that the message loop observer used for event spying is added and
353 // removed appropriately so we can tell when to resize layout the tab strip. 347 // removed appropriately so we can tell when to resize layout the tab strip.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 490
497 // Helper for performing tab selection as a result of dragging over a tab. 491 // Helper for performing tab selection as a result of dragging over a tab.
498 HoverTabSelector hover_tab_selector_; 492 HoverTabSelector hover_tab_selector_;
499 493
500 content::NotificationRegistrar registrar_; 494 content::NotificationRegistrar registrar_;
501 495
502 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 496 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
503 }; 497 };
504 498
505 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 499 #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