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

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

Issue 32463003: Modify hit test masks for tabs and tab close buttons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.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) 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // ui::EventHandler overrides. 256 // ui::EventHandler overrides.
257 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 257 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
258 258
259 private: 259 private:
260 typedef std::map<int, std::vector<Tab*> > TabsClosingMap; 260 typedef std::map<int, std::vector<Tab*> > TabsClosingMap;
261 261
262 class RemoveTabDelegate; 262 class RemoveTabDelegate;
263 263
264 friend class TabDragController; 264 friend class TabDragController;
265 friend class TabDragControllerTest; 265 friend class TabDragControllerTest;
266 friend class TabStripTest;
267 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked);
266 268
267 // Used during a drop session of a url. Tracks the position of the drop as 269 // Used during a drop session of a url. Tracks the position of the drop as
268 // well as a window used to highlight where the drop occurs. 270 // well as a window used to highlight where the drop occurs.
269 struct DropInfo { 271 struct DropInfo {
270 DropInfo(int drop_index, 272 DropInfo(int drop_index,
271 bool drop_before, 273 bool drop_before,
272 bool point_down, 274 bool point_down,
273 views::Widget* context); 275 views::Widget* context);
274 ~DropInfo(); 276 ~DropInfo();
275 277
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 bool immersive_style_; 624 bool immersive_style_;
623 625
624 // Our observers. 626 // Our observers.
625 typedef ObserverList<TabStripObserver> TabStripObservers; 627 typedef ObserverList<TabStripObserver> TabStripObservers;
626 TabStripObservers observers_; 628 TabStripObservers observers_;
627 629
628 DISALLOW_COPY_AND_ASSIGN(TabStrip); 630 DISALLOW_COPY_AND_ASSIGN(TabStrip);
629 }; 631 };
630 632
631 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 633 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698