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

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

Issue 2821011: Removes phantom tabs. (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_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) 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_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
7 7
8 #include "app/gtk_signal.h" 8 #include "app/gtk_signal.h"
9 #include "app/theme_provider.h" 9 #include "app/theme_provider.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Used to set/check whether this Tab is being animated closed. 93 // Used to set/check whether this Tab is being animated closed.
94 void set_closing(bool closing) { closing_ = closing; } 94 void set_closing(bool closing) { closing_ = closing; }
95 bool closing() const { return closing_; } 95 bool closing() const { return closing_; }
96 96
97 // TabRendererGtk overrides: 97 // TabRendererGtk overrides:
98 virtual bool IsSelected() const; 98 virtual bool IsSelected() const;
99 virtual bool IsVisible() const; 99 virtual bool IsVisible() const;
100 virtual void SetVisible(bool visible) const; 100 virtual void SetVisible(bool visible) const;
101 virtual void CloseButtonClicked(); 101 virtual void CloseButtonClicked();
102 virtual void UpdateData(TabContents* contents, 102 virtual void UpdateData(TabContents* contents,
103 bool phantom,
104 bool loading_only); 103 bool loading_only);
105 virtual void SetBounds(const gfx::Rect& bounds); 104 virtual void SetBounds(const gfx::Rect& bounds);
106 105
107 private: 106 private:
108 class ContextMenuController; 107 class ContextMenuController;
109 class TabGtkObserverHelper; 108 class TabGtkObserverHelper;
110 friend class ContextMenuController; 109 friend class ContextMenuController;
111 110
112 // MessageLoop::Observer implementation: 111 // MessageLoop::Observer implementation:
113 virtual void WillProcessEvent(GdkEvent* event); 112 virtual void WillProcessEvent(GdkEvent* event);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // mouse release event on the the dragged widget, otherwise, we don't know 198 // mouse release event on the the dragged widget, otherwise, we don't know
200 // when the drag has ended when the user presses space or enter. We queue 199 // when the drag has ended when the user presses space or enter. We queue
201 // a task to end the drag and only run it if GTK+ didn't send us the 200 // a task to end the drag and only run it if GTK+ didn't send us the
202 // drag-failed event. 201 // drag-failed event.
203 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; 202 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_;
204 203
205 DISALLOW_COPY_AND_ASSIGN(TabGtk); 204 DISALLOW_COPY_AND_ASSIGN(TabGtk);
206 }; 205 };
207 206
208 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 207 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698