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

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

Issue 2824044: Implement App Tabs for GTK (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: last cr change Created 10 years, 5 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 103 bool phantom,
104 bool app,
104 bool loading_only); 105 bool loading_only);
105 virtual void SetBounds(const gfx::Rect& bounds); 106 virtual void SetBounds(const gfx::Rect& bounds);
106 107
107 private: 108 private:
108 class ContextMenuController; 109 class ContextMenuController;
109 class TabGtkObserverHelper; 110 class TabGtkObserverHelper;
110 friend class ContextMenuController; 111 friend class ContextMenuController;
111 112
112 // MessageLoop::Observer implementation: 113 // MessageLoop::Observer implementation:
113 virtual void WillProcessEvent(GdkEvent* event); 114 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 200 // 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 201 // 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 202 // a task to end the drag and only run it if GTK+ didn't send us the
202 // drag-failed event. 203 // drag-failed event.
203 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; 204 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_;
204 205
205 DISALLOW_COPY_AND_ASSIGN(TabGtk); 206 DISALLOW_COPY_AND_ASSIGN(TabGtk);
206 }; 207 };
207 208
208 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 209 #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