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

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

Issue 8068020: Converts usage of GetBrowserViewForNativeWindow to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback, and make ShowPageInfo platform specific Created 9 years, 2 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_DRAGGED_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Move the DraggedTabView according to the current mouse screen position, 188 // Move the DraggedTabView according to the current mouse screen position,
189 // potentially updating the source and other TabStrips. 189 // potentially updating the source and other TabStrips.
190 void ContinueDragging(); 190 void ContinueDragging();
191 191
192 // Handles dragging tabs while the tabs are attached. 192 // Handles dragging tabs while the tabs are attached.
193 void MoveAttached(const gfx::Point& screen_point); 193 void MoveAttached(const gfx::Point& screen_point);
194 194
195 // Handles dragging while the tabs are detached. 195 // Handles dragging while the tabs are detached.
196 void MoveDetached(const gfx::Point& screen_point); 196 void MoveDetached(const gfx::Point& screen_point);
197 197
198 #if defined(OS_WIN) && !defined(USE_AURA)
198 // Returns the compatible TabStrip that is under the specified point (screen 199 // Returns the compatible TabStrip that is under the specified point (screen
199 // coordinates), or NULL if there is none. 200 // coordinates), or NULL if there is none.
200 BaseTabStrip* GetTabStripForPoint(const gfx::Point& screen_point); 201 BaseTabStrip* GetTabStripForPoint(const gfx::Point& screen_point);
202 #endif
201 203
202 DockInfo GetDockInfoAtPoint(const gfx::Point& screen_point); 204 DockInfo GetDockInfoAtPoint(const gfx::Point& screen_point);
203 205
204 // Returns the specified |tabstrip| if it contains the specified point 206 // Returns the specified |tabstrip| if it contains the specified point
205 // (screen coordinates), NULL if it does not. 207 // (screen coordinates), NULL if it does not.
206 BaseTabStrip* GetTabStripIfItContains(BaseTabStrip* tabstrip, 208 BaseTabStrip* GetTabStripIfItContains(BaseTabStrip* tabstrip,
207 const gfx::Point& screen_point) const; 209 const gfx::Point& screen_point) const;
208 210
209 // Attach the dragged Tab to the specified TabStrip. 211 // Attach the dragged Tab to the specified TabStrip.
210 void Attach(BaseTabStrip* attached_tabstrip, const gfx::Point& screen_point); 212 void Attach(BaseTabStrip* attached_tabstrip, const gfx::Point& screen_point);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Index of the source tab in drag_data_. 373 // Index of the source tab in drag_data_.
372 size_t source_tab_index_; 374 size_t source_tab_index_;
373 375
374 // True until |MoveAttached| is invoked once. 376 // True until |MoveAttached| is invoked once.
375 bool initial_move_; 377 bool initial_move_;
376 378
377 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); 379 DISALLOW_COPY_AND_ASSIGN(DraggedTabController);
378 }; 380 };
379 381
380 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ 382 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698