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

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: Fixing context menu commands 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();
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // True if the tabstrip has already been added as a MessageLoop observer. 464 // True if the tabstrip has already been added as a MessageLoop observer.
462 bool added_as_message_loop_observer_; 465 bool added_as_message_loop_observer_;
463 466
464 // Helper for performing tab selection as a result of dragging over a tab. 467 // Helper for performing tab selection as a result of dragging over a tab.
465 HoverTabSelector hover_tab_selector_; 468 HoverTabSelector hover_tab_selector_;
466 469
467 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 470 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
468 }; 471 };
469 472
470 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ 473 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698