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

Unified Diff: mash/wm/drag_window_resizer.cc

Issue 2002243002: Gets mash to use WmToplevelWindowEventHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/drag_window_resizer.h ('k') | mash/wm/frame/move_event_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/drag_window_resizer.cc
diff --git a/mash/wm/drag_window_resizer.cc b/mash/wm/drag_window_resizer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3fc53360f089577a11a10aa0a891b1d51cb2d4c1
--- /dev/null
+++ b/mash/wm/drag_window_resizer.cc
@@ -0,0 +1,40 @@
+// 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.
+
+#include "mash/wm/drag_window_resizer.h"
+
+namespace mash {
+namespace wm {
+
+DragWindowResizer::DragWindowResizer(
+ std::unique_ptr<WindowResizer> next_window_resizer,
+ ash::wm::WindowState* window_state)
+ : WindowResizer(window_state),
+ next_window_resizer_(std::move(next_window_resizer)) {}
+
+DragWindowResizer::~DragWindowResizer() {
+ if (window_state_)
+ window_state_->DeleteDragDetails();
+}
+
+void DragWindowResizer::Drag(const gfx::Point& location, int event_flags) {
+ next_window_resizer_->Drag(location, event_flags);
+ // http://crbug.com/613199.
+ NOTIMPLEMENTED();
+}
+
+void DragWindowResizer::CompleteDrag() {
+ next_window_resizer_->CompleteDrag();
+ // http://crbug.com/613199.
+ NOTIMPLEMENTED();
+}
+
+void DragWindowResizer::RevertDrag() {
+ next_window_resizer_->RevertDrag();
+ // http://crbug.com/613199.
+ NOTIMPLEMENTED();
+}
+
+} // namespace wm
+} // namespace mash
« no previous file with comments | « mash/wm/drag_window_resizer.h ('k') | mash/wm/frame/move_event_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698