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

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

Issue 9309110: Refactored MouseWatcher to allow regions other than Views to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 8 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 | 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 BaseTab* tab, 155 BaseTab* tab,
156 const views::MouseEvent& event, 156 const views::MouseEvent& event,
157 const TabStripSelectionModel& original_selection) OVERRIDE; 157 const TabStripSelectionModel& original_selection) OVERRIDE;
158 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE; 158 virtual void ContinueDrag(const views::MouseEvent& event) OVERRIDE;
159 virtual bool EndDrag(bool canceled) OVERRIDE; 159 virtual bool EndDrag(bool canceled) OVERRIDE;
160 virtual BaseTab* GetTabAt(BaseTab* tab, 160 virtual BaseTab* GetTabAt(BaseTab* tab,
161 const gfx::Point& tab_in_tab_coordinates) OVERRIDE; 161 const gfx::Point& tab_in_tab_coordinates) OVERRIDE;
162 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE; 162 virtual void ClickActiveTab(const BaseTab* tab) const OVERRIDE;
163 163
164 // MouseWatcherListener overrides: 164 // MouseWatcherListener overrides:
165 virtual void MouseMovedOutOfView() OVERRIDE; 165 virtual void MouseMovedOutOfHost() OVERRIDE;
166 166
167 // AbstractTabStripView implementation: 167 // AbstractTabStripView implementation:
168 virtual bool IsTabStripEditable() const OVERRIDE; 168 virtual bool IsTabStripEditable() const OVERRIDE;
169 virtual bool IsTabStripCloseable() const OVERRIDE; 169 virtual bool IsTabStripCloseable() const OVERRIDE;
170 virtual void UpdateLoadingAnimations() OVERRIDE; 170 virtual void UpdateLoadingAnimations() OVERRIDE;
171 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; 171 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE;
172 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; 172 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE;
173 virtual views::View* GetNewTabButton() OVERRIDE; 173 virtual views::View* GetNewTabButton() OVERRIDE;
174 174
175 // views::View overrides: 175 // views::View overrides:
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 483
484 views::BoundsAnimator bounds_animator_; 484 views::BoundsAnimator bounds_animator_;
485 485
486 // Size we last layed out at. 486 // Size we last layed out at.
487 gfx::Size last_layout_size_; 487 gfx::Size last_layout_size_;
488 488
489 DISALLOW_COPY_AND_ASSIGN(TabStrip); 489 DISALLOW_COPY_AND_ASSIGN(TabStrip);
490 }; 490 };
491 491
492 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 492 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698