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 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_DRAG_HANDLER_H_ 6#define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_DRAG_HANDLER_H_ 7 8#include "base/basictypes.h" 9 10class Panel; 11namespace gfx { 12class Point; 13} 14 15// Handles all the drags to docked panels. 16class DockedPanelDragHandler { 17 public: 18 static void HandleDrag(Panel* panel, const gfx::Point& target_position); 19 20 private: 21 static void DragLeft(Panel* panel); 22 static void DragRight(Panel* panel); 23 24 DISALLOW_IMPLICIT_CONSTRUCTORS(DockedPanelDragHandler); 25}; 26 27#endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_DRAG_HANDLER_H_ 28