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

Unified Diff: ash/wm/default_window_resizer.h

Issue 121153003: Prevents panels attached to shelf from docking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevents panels attached to shelf from docking (nits) Created 6 years, 11 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/ash.gyp ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/default_window_resizer.h
diff --git a/ash/wm/default_window_resizer.h b/ash/wm/default_window_resizer.h
index f459d52cb69be43c6427fc439d1c1aca5c35fe93..40d2355e0f51e515b482eac3297bb412590b2908 100644
--- a/ash/wm/default_window_resizer.h
+++ b/ash/wm/default_window_resizer.h
@@ -18,31 +18,23 @@ class ASH_EXPORT DefaultWindowResizer : public WindowResizer {
virtual ~DefaultWindowResizer();
// Creates a new DefaultWindowResizer. The caller takes ownership of the
- // returned object. Returns NULL if not resizable.
- static DefaultWindowResizer* Create(aura::Window* window,
- const gfx::Point& location,
- int window_component,
- aura::client::WindowMoveSource source);
+ // 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 is_resizable() const { return details().is_resizable; }
bool changed_size() const {
- return !(details_.bounds_change & kBoundsChange_Repositions);
+ return !(details().bounds_change & kBoundsChange_Repositions);
}
- aura::Window* target_window() const { return details_.window; }
// WindowResizer:
virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE;
virtual void CompleteDrag() OVERRIDE;
virtual void RevertDrag() OVERRIDE;
- virtual aura::Window* GetTarget() OVERRIDE;
- virtual const gfx::Point& GetInitialLocation() const OVERRIDE;
private:
- explicit DefaultWindowResizer(const Details& details);
-
- const Details details_;
+ 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_;
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/default_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698