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

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

Issue 10545115: TabContentsWrapper -> TabContents, part 41. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 11 matching lines...) Expand all
22 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
23 #include "ui/base/gtk/gtk_signal.h" 23 #include "ui/base/gtk/gtk_signal.h"
24 #include "ui/base/gtk/owned_widget_gtk.h" 24 #include "ui/base/gtk/owned_widget_gtk.h"
25 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
26 26
27 class BrowserWindowGtk; 27 class BrowserWindowGtk;
28 class CustomDrawButton; 28 class CustomDrawButton;
29 class DraggedTabControllerGtk; 29 class DraggedTabControllerGtk;
30 class GtkThemeService; 30 class GtkThemeService;
31 class TabContents; 31 class TabContents;
32 typedef TabContents TabContentsWrapper;
33 32
34 namespace gfx { 33 namespace gfx {
35 class Image; 34 class Image;
36 } 35 }
37 36
38 class TabStripGtk : public TabStripModelObserver, 37 class TabStripGtk : public TabStripModelObserver,
39 public TabGtk::TabDelegate, 38 public TabGtk::TabDelegate,
40 public MessageLoopForUI::Observer, 39 public MessageLoopForUI::Observer,
41 public content::NotificationObserver, 40 public content::NotificationObserver,
42 public TabstripOriginProvider, 41 public TabstripOriginProvider,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void SetVerticalOffset(int offset); 103 void SetVerticalOffset(int offset);
105 104
106 // TabstripOriginProvider implementation ------------------------------------- 105 // TabstripOriginProvider implementation -------------------------------------
107 virtual gfx::Point GetTabStripOriginForWidget(GtkWidget* widget) OVERRIDE; 106 virtual gfx::Point GetTabStripOriginForWidget(GtkWidget* widget) OVERRIDE;
108 107
109 // ViewIDUtil::Delegate implementation --------------------------------------- 108 // ViewIDUtil::Delegate implementation ---------------------------------------
110 virtual GtkWidget* GetWidgetForViewID(ViewID id) OVERRIDE; 109 virtual GtkWidget* GetWidgetForViewID(ViewID id) OVERRIDE;
111 110
112 protected: 111 protected:
113 // TabStripModelObserver implementation: 112 // TabStripModelObserver implementation:
114 virtual void TabInsertedAt(TabContentsWrapper* contents, 113 virtual void TabInsertedAt(TabContents* contents,
115 int index, 114 int index,
116 bool foreground) OVERRIDE; 115 bool foreground) OVERRIDE;
117 virtual void TabDetachedAt(TabContentsWrapper* contents, int index) OVERRIDE; 116 virtual void TabDetachedAt(TabContents* contents, int index) OVERRIDE;
118 virtual void TabMoved(TabContentsWrapper* contents, 117 virtual void TabMoved(TabContents* contents,
119 int from_index, 118 int from_index,
120 int to_index) OVERRIDE; 119 int to_index) OVERRIDE;
121 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, 120 virtual void ActiveTabChanged(TabContents* old_contents,
122 TabContentsWrapper* new_contents, 121 TabContents* new_contents,
123 int index, 122 int index,
124 bool user_gesture) OVERRIDE; 123 bool user_gesture) OVERRIDE;
125 virtual void TabSelectionChanged( 124 virtual void TabSelectionChanged(
126 TabStripModel* tab_strip_model, 125 TabStripModel* tab_strip_model,
127 const TabStripSelectionModel& old_model) OVERRIDE; 126 const TabStripSelectionModel& old_model) OVERRIDE;
128 virtual void TabChangedAt(TabContentsWrapper* contents, int index, 127 virtual void TabChangedAt(TabContents* contents, int index,
129 TabChangeType change_type) OVERRIDE; 128 TabChangeType change_type) OVERRIDE;
130 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 129 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
131 TabContentsWrapper* old_contents, 130 TabContents* old_contents,
132 TabContentsWrapper* new_contents, 131 TabContents* new_contents,
133 int index) OVERRIDE; 132 int index) OVERRIDE;
134 virtual void TabMiniStateChanged(TabContentsWrapper* contents, 133 virtual void TabMiniStateChanged(TabContents* contents,
135 int index) OVERRIDE; 134 int index) OVERRIDE;
136 virtual void TabBlockedStateChanged(TabContentsWrapper* contents, 135 virtual void TabBlockedStateChanged(TabContents* contents,
137 int index) OVERRIDE; 136 int index) OVERRIDE;
138 137
139 // TabGtk::TabDelegate implementation: 138 // TabGtk::TabDelegate implementation:
140 virtual bool IsTabActive(const TabGtk* tab) const OVERRIDE; 139 virtual bool IsTabActive(const TabGtk* tab) const OVERRIDE;
141 virtual bool IsTabSelected(const TabGtk* tab) const OVERRIDE; 140 virtual bool IsTabSelected(const TabGtk* tab) const OVERRIDE;
142 virtual bool IsTabPinned(const TabGtk* tab) const OVERRIDE; 141 virtual bool IsTabPinned(const TabGtk* tab) const OVERRIDE;
143 virtual bool IsTabDetached(const TabGtk* tab) const OVERRIDE; 142 virtual bool IsTabDetached(const TabGtk* tab) const OVERRIDE;
144 virtual void ActivateTab(TabGtk* tab) OVERRIDE; 143 virtual void ActivateTab(TabGtk* tab) OVERRIDE;
145 virtual void ToggleTabSelection(TabGtk* tab) OVERRIDE; 144 virtual void ToggleTabSelection(TabGtk* tab) OVERRIDE;
146 virtual void ExtendTabSelection(TabGtk* tab) OVERRIDE; 145 virtual void ExtendTabSelection(TabGtk* tab) OVERRIDE;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 494
496 // Helper for performing tab selection as a result of dragging over a tab. 495 // Helper for performing tab selection as a result of dragging over a tab.
497 HoverTabSelector hover_tab_selector_; 496 HoverTabSelector hover_tab_selector_;
498 497
499 content::NotificationRegistrar registrar_; 498 content::NotificationRegistrar registrar_;
500 499
501 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 500 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
502 }; 501 };
503 502
504 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 503 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698