blob: 0743cb437e3838d396d9886588931f8ed065d07f [file] [log] [blame]
// Copyright 2016 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 ASH_WM_DRAG_WINDOW_RESIZER_MASH_H_
#define ASH_WM_DRAG_WINDOW_RESIZER_MASH_H_
#include <memory>
#include "ash/wm/window_resizer.h"
#include "base/macros.h"
namespace ash {
// DragWindowResizer is a decorator of WindowResizer and adds the ability to
// drag windows across displays.
class DragWindowResizerMash : public WindowResizer {
public:
DragWindowResizerMash(std::unique_ptr<WindowResizer> next_window_resizer,
wm::WindowState* window_state);
~DragWindowResizerMash() override;
// WindowResizer:
void Drag(const gfx::Point& location, int event_flags) override;
void CompleteDrag() override;
void RevertDrag() override;
private:
std::unique_ptr<WindowResizer> next_window_resizer_;
DISALLOW_COPY_AND_ASSIGN(DragWindowResizerMash);
};
} // namespace ash
#endif // ASH_WM_DRAG_WINDOW_RESIZER_MASH_H_