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

Side by Side Diff: chrome/browser/ui/panels/stacked_panel_drag_handler.h

Issue 11669018: Support dragging panels to stack and snap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS build for relanding Created 7 years, 11 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_PANELS_STACKED_PANEL_DRAG_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_STACKED_PANEL_DRAG_HANDLER_H_
6 #define CHROME_BROWSER_UI_PANELS_STACKED_PANEL_DRAG_HANDLER_H_ 6 #define CHROME_BROWSER_UI_PANELS_STACKED_PANEL_DRAG_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 class Panel; 10 class Panel;
11 namespace gfx { 11 namespace gfx {
12 class Point; 12 class Point;
13 } 13 }
14 14
15 // Handles all the drags to unstacked free-floating panels. 15 // Handles all the drags to unstacked free-floating panels.
16 class StackedPanelDragHandler { 16 class StackedPanelDragHandler {
17 public: 17 public:
18 static void HandleDrag(Panel* panel, const gfx::Point& target_position); 18 static void HandleDrag(Panel* panel,
19 const gfx::Point& target_position,
20 bool in_orginal_collection);
21
22 static void FinalizeDrag(Panel* panel);
19 23
20 private: 24 private:
21 DISALLOW_IMPLICIT_CONSTRUCTORS(StackedPanelDragHandler); 25 DISALLOW_IMPLICIT_CONSTRUCTORS(StackedPanelDragHandler);
22 }; 26 };
23 27
24 #endif // CHROME_BROWSER_UI_PANELS_STACKED_PANEL_DRAG_HANDLER_H_ 28 #endif // CHROME_BROWSER_UI_PANELS_STACKED_PANEL_DRAG_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/stacked_panel_collection.cc ('k') | chrome/browser/ui/panels/stacked_panel_drag_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698