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

Unified Diff: ash/common/wm/default_window_resizer.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 10 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 | « ash/common/wm/default_state.cc ('k') | ash/common/wm/default_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/default_window_resizer.h
diff --git a/ash/common/wm/default_window_resizer.h b/ash/common/wm/default_window_resizer.h
deleted file mode 100644
index 34022ca1b990430dfed52a2315742e33960ee814..0000000000000000000000000000000000000000
--- a/ash/common/wm/default_window_resizer.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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 ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_
-#define ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/wm/window_resizer.h"
-#include "base/macros.h"
-
-namespace ash {
-class WmShell;
-
-// WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
-// or resizing a window. All coordinates passed to this are in the parent
-// windows coordiantes.
-class ASH_EXPORT DefaultWindowResizer : public WindowResizer {
- public:
- ~DefaultWindowResizer() override;
-
- // Creates a new DefaultWindowResizer. The caller takes ownership of the
- // returned object.
- static DefaultWindowResizer* Create(wm::WindowState* window_state);
-
- // Returns true if the drag will result in changing the window in anyway.
- bool is_resizable() const { return details().is_resizable; }
-
- bool changed_size() const {
- return !(details().bounds_change & kBoundsChange_Repositions);
- }
-
- // WindowResizer:
- void Drag(const gfx::Point& location, int event_flags) override;
- void CompleteDrag() override;
- void RevertDrag() override;
-
- private:
- explicit DefaultWindowResizer(wm::WindowState* window_state);
-
- // Set to true once Drag() is invoked and the bounds of the window change.
- bool did_move_or_resize_;
-
- WmShell* shell_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultWindowResizer);
-};
-
-} // namespace aura
-
-#endif // ASH_COMMON_WM_DEFAULT_WINDOW_RESIZER_H_
« no previous file with comments | « ash/common/wm/default_state.cc ('k') | ash/common/wm/default_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698