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

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

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refinements, etc. Created 9 years, 9 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_VIEWS_TABS_BASE_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 protected: 147 protected:
148 // The Tabs we contain, and their last generated "good" bounds. 148 // The Tabs we contain, and their last generated "good" bounds.
149 struct TabData { 149 struct TabData {
150 BaseTab* tab; 150 BaseTab* tab;
151 gfx::Rect ideal_bounds; 151 gfx::Rect ideal_bounds;
152 }; 152 };
153 153
154 // View overrides. 154 // View overrides.
155 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 155 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
156 virtual void OnMouseReleased(const views::MouseEvent& event, 156 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
157 bool canceled) OVERRIDE; 157 virtual void OnMouseCaptureLost() OVERRIDE;
158 158
159 // Creates and returns a new tab. The caller owners the returned tab. 159 // Creates and returns a new tab. The caller owners the returned tab.
160 virtual BaseTab* CreateTab() = 0; 160 virtual BaseTab* CreateTab() = 0;
161 161
162 // Invoked from |AddTabAt| after the newly created tab has been inserted. 162 // Invoked from |AddTabAt| after the newly created tab has been inserted.
163 // Subclasses should either start an animation, or layout. 163 // Subclasses should either start an animation, or layout.
164 virtual void StartInsertTabAnimation(int model_index) = 0; 164 virtual void StartInsertTabAnimation(int model_index) = 0;
165 165
166 // Invoked from |MoveTab| after |tab_data_| has been updated to animate the 166 // Invoked from |MoveTab| after |tab_data_| has been updated to animate the
167 // move. 167 // move.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // model. 266 // model.
267 bool attaching_dragged_tab_; 267 bool attaching_dragged_tab_;
268 268
269 views::BoundsAnimator bounds_animator_; 269 views::BoundsAnimator bounds_animator_;
270 270
271 // Size we last layed out at. 271 // Size we last layed out at.
272 gfx::Size last_layout_size_; 272 gfx::Size last_layout_size_;
273 }; 273 };
274 274
275 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 275 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698