summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/panels/docked_panel_drag_handler.h
blob: a90ad9fe1187b5571dd7687fae56e43badd845df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_DRAG_HANDLER_H_
#define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_DRAG_HANDLER_H_

#include "base/basictypes.h"

class Panel;
namespace gfx {
class Point;
}

// Handles all the drags to docked panels.
class DockedPanelDragHandler {
 public:
  static void HandleDrag(Panel* panel, const gfx::Point& target_position);

 private:
  static void DragLeft(Panel* panel);
  static void DragRight(Panel* panel);

  DISALLOW_IMPLICIT_CONSTRUCTORS(DockedPanelDragHandler);
};

#endif  // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_DRAG_HANDLER_H_