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

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

Issue 24108003: [Cleanup] Rename WindowSettings to WindowState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase fix Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/workspace/snap_sizer_unittest.cc ('k') | ash/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/toplevel_window_event_handler.h" 8 #include "ash/wm/toplevel_window_event_handler.h"
9 #include "ash/wm/workspace/multi_window_resize_controller.h" 9 #include "ash/wm/workspace/multi_window_resize_controller.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 namespace wm {
17 class WindowState;
18 }
19
16 namespace internal { 20 namespace internal {
17 21
18 class WorkspaceEventHandlerTestHelper; 22 class WorkspaceEventHandlerTestHelper;
19 23
20 class WorkspaceEventHandler : public ToplevelWindowEventHandler { 24 class WorkspaceEventHandler : public ToplevelWindowEventHandler {
21 public: 25 public:
22 explicit WorkspaceEventHandler(aura::Window* owner); 26 explicit WorkspaceEventHandler(aura::Window* owner);
23 virtual ~WorkspaceEventHandler(); 27 virtual ~WorkspaceEventHandler();
24 28
25 // Overridden from ToplevelWindowEventHandler: 29 // Overridden from ToplevelWindowEventHandler:
26 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 30 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
27 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 31 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
28 32
29 private: 33 private:
30 friend class WorkspaceEventHandlerTestHelper; 34 friend class WorkspaceEventHandlerTestHelper;
31 35
32 // Determines if |event| corresponds to a double click on either the top or 36 // 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 37 // 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 38 // window between its restored state and the full available height of the
35 // workspace. 39 // workspace.
36 void HandleVerticalResizeDoubleClick(aura::Window* target, 40 void HandleVerticalResizeDoubleClick(wm::WindowState* window_state,
37 ui::MouseEvent* event); 41 ui::MouseEvent* event);
38 42
39 MultiWindowResizeController multi_window_resize_controller_; 43 MultiWindowResizeController multi_window_resize_controller_;
40 44
41 // If non-NULL, set to true in the destructor. 45 // If non-NULL, set to true in the destructor.
42 bool* destroyed_; 46 bool* destroyed_;
43 47
44 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandler); 48 DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandler);
45 }; 49 };
46 50
47 } // namespace internal 51 } // namespace internal
48 } // namespace ash 52 } // namespace ash
49 53
50 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_ 54 #endif // ASH_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/snap_sizer_unittest.cc ('k') | ash/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698