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

Unified Diff: ui/views/widget/desktop_aura/x11_window_event_filter.h

Issue 288203005: Maximize window vertically/horizontally when the maximize button is middle/right clicked on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | ui/views/widget/desktop_aura/x11_window_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/x11_window_event_filter.h
diff --git a/ui/views/widget/desktop_aura/x11_window_event_filter.h b/ui/views/widget/desktop_aura/x11_window_event_filter.h
index 5c7e72229bb0133010a0987bc8477a68c0f7aeec..2949d6fb593873d12d63ae9f18a00dacc5437215 100644
--- a/ui/views/widget/desktop_aura/x11_window_event_filter.h
+++ b/ui/views/widget/desktop_aura/x11_window_event_filter.h
@@ -39,6 +39,13 @@ class VIEWS_EXPORT X11WindowEventFilter : public ui::EventHandler {
virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
private:
+ // Called when the user clicked the caption area.
+ void OnClickedCaption(ui::MouseEvent* event,
+ int previous_click_component);
+
+ // Called when the user clicked the maximize button.
+ void OnClickedMaximizeButton(ui::MouseEvent* event);
+
void ToggleMaximizedState();
// Dispatches a _NET_WM_MOVERESIZE message to the window manager to tell it
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/x11_window_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698