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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 893843007: Experiment to hide close buttons of inactive tabs when using touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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_VIEWS_TABS_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Stops any ongoing animations. If |layout| is true and an animation is 206 // Stops any ongoing animations. If |layout| is true and an animation is
207 // ongoing this does a layout. 207 // ongoing this does a layout.
208 void StopAnimating(bool layout); 208 void StopAnimating(bool layout);
209 209
210 // Called to indicate whether the given URL is a supported file. 210 // Called to indicate whether the given URL is a supported file.
211 void FileSupported(const GURL& url, bool supported); 211 void FileSupported(const GURL& url, bool supported);
212 212
213 // TabController overrides: 213 // TabController overrides:
214 const ui::ListSelectionModel& GetSelectionModel() override; 214 const ui::ListSelectionModel& GetSelectionModel() override;
215 bool SupportsMultipleSelection() override; 215 bool SupportsMultipleSelection() override;
216 bool TouchWasUsedAsLastInput() override;
216 void SelectTab(Tab* tab) override; 217 void SelectTab(Tab* tab) override;
217 void ExtendSelectionTo(Tab* tab) override; 218 void ExtendSelectionTo(Tab* tab) override;
218 void ToggleSelected(Tab* tab) override; 219 void ToggleSelected(Tab* tab) override;
219 void AddSelectionFromAnchorTo(Tab* tab) override; 220 void AddSelectionFromAnchorTo(Tab* tab) override;
220 void CloseTab(Tab* tab, CloseTabSource source) override; 221 void CloseTab(Tab* tab, CloseTabSource source) override;
221 void ToggleTabAudioMute(Tab* tab) override; 222 void ToggleTabAudioMute(Tab* tab) override;
222 void ShowContextMenuForTab(Tab* tab, 223 void ShowContextMenuForTab(Tab* tab,
223 const gfx::Point& p, 224 const gfx::Point& p,
224 ui::MenuSourceType source_type) override; 225 ui::MenuSourceType source_type) override;
225 bool IsActiveTab(const Tab* tab) const override; 226 bool IsActiveTab(const Tab* tab) const override;
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 bool immersive_style_; 673 bool immersive_style_;
673 674
674 // Our observers. 675 // Our observers.
675 typedef ObserverList<TabStripObserver> TabStripObservers; 676 typedef ObserverList<TabStripObserver> TabStripObservers;
676 TabStripObservers observers_; 677 TabStripObservers observers_;
677 678
678 DISALLOW_COPY_AND_ASSIGN(TabStrip); 679 DISALLOW_COPY_AND_ASSIGN(TabStrip);
679 }; 680 };
680 681
681 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698