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

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

Issue 63022: Layout the tabs explicitly when creating a background tab. Update to correct ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GTK_TABS_TAB_STRIP_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 // TabStripModelObserver implementation: 36 // TabStripModelObserver implementation:
37 virtual void TabInsertedAt(TabContents* contents, 37 virtual void TabInsertedAt(TabContents* contents,
38 int index, 38 int index,
39 bool foreground); 39 bool foreground);
40 virtual void TabDetachedAt(TabContents* contents, int index); 40 virtual void TabDetachedAt(TabContents* contents, int index);
41 virtual void TabSelectedAt(TabContents* old_contents, 41 virtual void TabSelectedAt(TabContents* old_contents,
42 TabContents* contents, 42 TabContents* contents,
43 int index, 43 int index,
44 bool user_gesture); 44 bool user_gesture);
45 virtual void TabMoved(TabContents* contents, int from_index, int to_index); 45 virtual void TabMoved(TabContents* contents, int from_index, int to_index);
46 virtual void TabChangedAt(TabContents* contents, int index); 46 virtual void TabChangedAt(TabContents* contents, int index,
47 bool loading_only);
47 48
48 // TabGtk::Delegate implementation: 49 // TabGtk::Delegate implementation:
49 virtual bool IsTabSelected(const TabGtk* tab) const; 50 virtual bool IsTabSelected(const TabGtk* tab) const;
50 virtual void SelectTab(TabGtk* tab); 51 virtual void SelectTab(TabGtk* tab);
51 virtual void CloseTab(TabGtk* tab); 52 virtual void CloseTab(TabGtk* tab);
52 virtual bool IsCommandEnabledForTab( 53 virtual bool IsCommandEnabledForTab(
53 TabStripModel::ContextMenuCommand command_id, const TabGtk* tab) const; 54 TabStripModel::ContextMenuCommand command_id, const TabGtk* tab) const;
54 virtual void ExecuteCommandForTab( 55 virtual void ExecuteCommandForTab(
55 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); 56 TabStripModel::ContextMenuCommand command_id, TabGtk* tab);
56 virtual void StartHighlightTabsForCommand( 57 virtual void StartHighlightTabsForCommand(
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 gfx::Rect bounds_; 149 gfx::Rect bounds_;
149 150
150 // Our model. 151 // Our model.
151 TabStripModel* model_; 152 TabStripModel* model_;
152 153
153 // The index of the tab the mouse is currently over. -1 if not over a tab. 154 // The index of the tab the mouse is currently over. -1 if not over a tab.
154 int hover_index_; 155 int hover_index_;
155 }; 156 };
156 157
157 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 158 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698