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

Unified Diff: ash/wm/toplevel_window_event_handler.h

Issue 12441010: Attach panel while dragging to bring it in front of other panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: ash/wm/toplevel_window_event_handler.h
diff --git a/ash/wm/toplevel_window_event_handler.h b/ash/wm/toplevel_window_event_handler.h
index 16b4032b2743e3d5882414cd37a2ae7b6f35809c..5a53549d204fba45e3748df33dbf340f5eb1dc61 100644
--- a/ash/wm/toplevel_window_event_handler.h
+++ b/ash/wm/toplevel_window_event_handler.h
@@ -9,6 +9,7 @@
#include "ash/ash_export.h"
#include "ash/display/display_controller.h"
+#include "ash/wm/window_resizer_owner.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -32,11 +33,14 @@ class WindowResizer;
class ASH_EXPORT ToplevelWindowEventHandler
: public ui::EventHandler,
public aura::client::WindowMoveClient,
- public DisplayController::Observer {
+ public DisplayController::Observer,
+ public WindowResizerOwner {
public:
explicit ToplevelWindowEventHandler(aura::Window* owner);
virtual ~ToplevelWindowEventHandler();
+ void PassResizer(ToplevelWindowEventHandler* window_handler);
+
// Overridden from ui::EventHandler:
virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
@@ -49,9 +53,14 @@ class ASH_EXPORT ToplevelWindowEventHandler
aura::client::WindowMoveSource move_source) OVERRIDE;
virtual void EndMoveLoop() OVERRIDE;
- // Overridden form ash::DisplayController::Observer:
+ // Overridden from ash::DisplayController::Observer:
virtual void OnDisplayConfigurationChanging() OVERRIDE;
+ // Overridden from ash::WindowResizerOwner:
+ virtual void PassResizer(WindowResizerOwner* new_owner) OVERRIDE;
+ virtual void AcceptResizer(WindowResizer* resizer,
+ bool in_gesture_drag) OVERRIDE;
+
private:
class ScopedWindowResizer;

Powered by Google App Engine
This is Rietveld 408576698