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

Side by Side Diff: ash/wm/workspace/workspace_event_handler.h

Issue 222203006: Prevents double-clicks on a tab close button from aslo maximizing the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
7 7
8 #include "ash/wm/workspace/multi_window_resize_controller.h" 8 #include "ash/wm/workspace/multi_window_resize_controller.h"
9 #include "ui/events/event_handler.h" 9 #include "ui/events/event_handler.h"
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // Determines if |event| corresponds to a double click on either the top or 32 // Determines if |event| corresponds to a double click on either the top or
33 // bottom vertical resize edge, and if so toggles the vertical height of the 33 // bottom vertical resize edge, and if so toggles the vertical height of the
34 // window between its restored state and the full available height of the 34 // window between its restored state and the full available height of the
35 // workspace. 35 // workspace.
36 void HandleVerticalResizeDoubleClick(wm::WindowState* window_state, 36 void HandleVerticalResizeDoubleClick(wm::WindowState* window_state,
37 ui::MouseEvent* event); 37 ui::MouseEvent* event);
38 38
39 MultiWindowResizeController multi_window_resize_controller_; 39 MultiWindowResizeController multi_window_resize_controller_;
40 40
41 // The non-client component for the target of a MouseEvent or GestureEvent.
42 // Events can be destructive to the window tree, which can cause the
43 // component of a ui::EF_IS_DOUBLE_CLICK event to no longer be the same as
44 // that of the initial click. Acting on a double click should only occur for
45 // matching components.
46 int event_target_component_;
47
41 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandler); 48 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandler);
42 }; 49 };
43 50
44 } // namespace internal 51 } // namespace internal
45 } // namespace ash 52 } // namespace ash
46 53
47 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_ 54 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_event_handler.cc » ('j') | ash/wm/workspace/workspace_event_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698