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

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

Issue 10446090: Changes the tabstrip dragging code to use coordinates from the events (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_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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual void ShowContextMenuForTab(BaseTab* tab, 171 virtual void ShowContextMenuForTab(BaseTab* tab,
172 const gfx::Point& p) OVERRIDE; 172 const gfx::Point& p) OVERRIDE;
173 virtual bool IsActiveTab(const BaseTab* tab) const OVERRIDE; 173 virtual bool IsActiveTab(const BaseTab* tab) const OVERRIDE;
174 virtual bool IsTabSelected(const BaseTab* tab) const OVERRIDE; 174 virtual bool IsTabSelected(const BaseTab* tab) const OVERRIDE;
175 virtual bool IsTabPinned(const BaseTab* tab) const OVERRIDE; 175 virtual bool IsTabPinned(const BaseTab* tab) const OVERRIDE;
176 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE; 176 virtual bool IsTabCloseable(const BaseTab* tab) const OVERRIDE;
177 virtual void MaybeStartDrag( 177 virtual void MaybeStartDrag(
178 BaseTab* tab, 178 BaseTab* tab,
179 const views::MouseEvent& event, 179 const views::MouseEvent& event,
180 const TabStripSelectionModel& original_selection) OVERRIDE; 180 const TabStripSelectionModel& original_selection) OVERRIDE;
181 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE; 181 virtual void ContinueDrag(views::View* view,
182 const gfx::Point& location) OVERRIDE;
182 virtual bool EndDrag(bool canceled) OVERRIDE; 183 virtual bool EndDrag(bool canceled) OVERRIDE;
183 virtual BaseTab* GetTabAt(BaseTab* tab, 184 virtual BaseTab* GetTabAt(BaseTab* tab,
184 const gfx::Point& tab_in_tab_coordinates) OVERRIDE; 185 const gfx::Point& tab_in_tab_coordinates) OVERRIDE;
185 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE; 186 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE;
186 virtual void OnMouseEventInTab(views::View* source, 187 virtual void OnMouseEventInTab(views::View* source,
187 const views::MouseEvent& event) OVERRIDE; 188 const views::MouseEvent& event) OVERRIDE;
188 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) OVERRIDE; 189 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) OVERRIDE;
189 190
190 // MouseWatcherListener overrides: 191 // MouseWatcherListener overrides:
191 virtual void MouseMovedOutOfHost() OVERRIDE; 192 virtual void MouseMovedOutOfHost() OVERRIDE;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // Time of the last mouse move event. 529 // Time of the last mouse move event.
529 base::TimeTicks last_mouse_move_time_; 530 base::TimeTicks last_mouse_move_time_;
530 531
531 // Number of mouse moves. 532 // Number of mouse moves.
532 int mouse_move_count_; 533 int mouse_move_count_;
533 534
534 DISALLOW_COPY_AND_ASSIGN(TabStrip); 535 DISALLOW_COPY_AND_ASSIGN(TabStrip);
535 }; 536 };
536 537
537 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 538 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.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