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

Unified Diff: ui/views/corewm/window_resizer.h

Issue 11574041: Move WindowResizer to CoreWM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | « ui/views/corewm/screen_util.cc ('k') | ui/views/corewm/window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/window_resizer.h
===================================================================
--- ui/views/corewm/window_resizer.h (revision 173169)
+++ ui/views/corewm/window_resizer.h (working copy)
@@ -2,24 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_WINDOW_RESIZER_H_
-#define ASH_WM_WINDOW_RESIZER_H_
+#ifndef UI_VIEWS_COREWM_WINDOW_RESIZER_H_
+#define UI_VIEWS_COREWM_WINDOW_RESIZER_H_
-#include "ash/ash_export.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/rect.h"
+#include "ui/views/views_export.h"
namespace aura {
class Window;
}
-namespace ash {
+namespace views {
+namespace corewm {
// WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
// or resizing a window. All coordinates passed to this are in the parent
// windows coordinates.
-class ASH_EXPORT WindowResizer {
+class VIEWS_EXPORT WindowResizer {
public:
// Constants to identify the type of resize.
static const int kBoundsChange_None;
@@ -52,7 +53,7 @@
virtual aura::Window* GetTarget() = 0;
protected:
- struct Details {
+ struct VIEWS_EXPORT Details {
Details();
Details(aura::Window* window,
const gfx::Point& location,
@@ -122,13 +123,7 @@
int* delta_y);
};
-// Creates a WindowResizer for |window|. This can return a scoped_ptr
-// initialized with NULL if |window| should not be resized nor dragged.
-ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer(
- aura::Window* window,
- const gfx::Point& point_in_parent,
- int window_component);
+} // namespace corewm
+} // namespace views
-} // namespace aura
-
-#endif // ASH_WM_WINDOW_RESIZER_H_
+#endif // UI_VIEWS_COREWM_WINDOW_RESIZER_H_
« no previous file with comments | « ui/views/corewm/screen_util.cc ('k') | ui/views/corewm/window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698