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

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

Issue 6933037: Multi-tab selection for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing check, addressing comments Created 9 years, 7 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) 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 TabChangeType change_type); 118 TabChangeType change_type);
119 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 119 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
120 TabContentsWrapper* old_contents, 120 TabContentsWrapper* old_contents,
121 TabContentsWrapper* new_contents, 121 TabContentsWrapper* new_contents,
122 int index); 122 int index);
123 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index); 123 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index);
124 virtual void TabBlockedStateChanged(TabContentsWrapper* contents, 124 virtual void TabBlockedStateChanged(TabContentsWrapper* contents,
125 int index); 125 int index);
126 126
127 // TabGtk::TabDelegate implementation: 127 // TabGtk::TabDelegate implementation:
128 virtual bool IsTabActive(const TabGtk* tab) const;
128 virtual bool IsTabSelected(const TabGtk* tab) const; 129 virtual bool IsTabSelected(const TabGtk* tab) const;
129 virtual bool IsTabPinned(const TabGtk* tab) const; 130 virtual bool IsTabPinned(const TabGtk* tab) const;
130 virtual bool IsTabDetached(const TabGtk* tab) const; 131 virtual bool IsTabDetached(const TabGtk* tab) const;
131 virtual void SelectTab(TabGtk* tab); 132 virtual void ActivateTab(TabGtk* tab);
133 virtual void ToggleTabSelection(TabGtk* tab);
134 virtual void ExtendTabSelection(TabGtk* tab);
132 virtual void CloseTab(TabGtk* tab); 135 virtual void CloseTab(TabGtk* tab);
133 virtual bool IsCommandEnabledForTab( 136 virtual bool IsCommandEnabledForTab(
134 TabStripModel::ContextMenuCommand command_id, const TabGtk* tab) const; 137 TabStripModel::ContextMenuCommand command_id, const TabGtk* tab) const;
135 virtual void ExecuteCommandForTab( 138 virtual void ExecuteCommandForTab(
136 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); 139 TabStripModel::ContextMenuCommand command_id, TabGtk* tab);
137 virtual void StartHighlightTabsForCommand( 140 virtual void StartHighlightTabsForCommand(
138 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); 141 TabStripModel::ContextMenuCommand command_id, TabGtk* tab);
139 virtual void StopHighlightTabsForCommand( 142 virtual void StopHighlightTabsForCommand(
140 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); 143 TabStripModel::ContextMenuCommand command_id, TabGtk* tab);
141 virtual void StopAllHighlighting(); 144 virtual void StopAllHighlighting();
142 virtual void MaybeStartDrag(TabGtk* tab, const gfx::Point& point); 145 virtual void MaybeStartDrag(TabGtk* tab, const gfx::Point& point);
143 virtual void ContinueDrag(GdkDragContext* context); 146 virtual void ContinueDrag(GdkDragContext* context);
144 virtual bool EndDrag(bool canceled); 147 virtual bool EndDrag(bool canceled);
145 virtual bool HasAvailableDragActions() const; 148 virtual bool HasAvailableDragActions() const;
146 virtual ui::ThemeProvider* GetThemeProvider(); 149 virtual ui::ThemeProvider* GetThemeProvider();
150 virtual TabStripMenuController* GetContextMenuControllerForTab(TabGtk* tab);
147 151
148 // MessageLoop::Observer implementation: 152 // MessageLoop::Observer implementation:
149 virtual void WillProcessEvent(GdkEvent* event); 153 virtual void WillProcessEvent(GdkEvent* event);
150 virtual void DidProcessEvent(GdkEvent* event); 154 virtual void DidProcessEvent(GdkEvent* event);
151 155
152 // Overridden from NotificationObserver: 156 // Overridden from NotificationObserver:
153 virtual void Observe(NotificationType type, 157 virtual void Observe(NotificationType type,
154 const NotificationSource& source, 158 const NotificationSource& source,
155 const NotificationDetails& details); 159 const NotificationDetails& details);
156 160
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // True if the tabstrip has already been added as a MessageLoop observer. 465 // True if the tabstrip has already been added as a MessageLoop observer.
462 bool added_as_message_loop_observer_; 466 bool added_as_message_loop_observer_;
463 467
464 // Helper for performing tab selection as a result of dragging over a tab. 468 // Helper for performing tab selection as a result of dragging over a tab.
465 HoverTabSelector hover_tab_selector_; 469 HoverTabSelector hover_tab_selector_;
466 470
467 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 471 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
468 }; 472 };
469 473
470 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 474 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698