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

Unified Diff: ash/wm/workspace/workspace_event_filter.h

Issue 9570037: Double clicking the resize handle should expand window along that axis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/ash.gyp ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_event_filter.h
===================================================================
--- ash/wm/workspace/workspace_event_filter.h (revision 124527)
+++ ash/wm/workspace/workspace_event_filter.h (working copy)
@@ -27,11 +27,11 @@
virtual bool PreHandleMouseEvent(aura::Window* target,
aura::MouseEvent* event) OVERRIDE;
- // Overriden from WindowObserver:
+ // Overridden from WindowObserver:
virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE;
protected:
- // Overriden from ToplevelWindowEventFilter:
+ // Overridden from ToplevelWindowEventFilter:
virtual WindowResizer* CreateWindowResizer(aura::Window* window,
const gfx::Point& point,
int window_component) OVERRIDE;
@@ -41,6 +41,13 @@
// the look of the caption area based on mouse-hover.
void UpdateHoveredWindow(aura::Window* toplevel);
+ // Determines if |event| corresponds to a double click on either the top or
+ // bottom vertical resize edge, and if so toggles the vertical height of the
+ // window between its restored state and the full available height of the
+ // workspace.
+ void HandleVerticalResizeDoubleClick(aura::Window* target,
+ aura::MouseEvent* event);
+
// Top-level window under the mouse cursor.
aura::Window* hovered_window_;
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698