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

Unified Diff: ash/common/wm/workspace/workspace_event_handler.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ash/common/wm/workspace/two_step_edge_cycler.cc ('k') | ash/common/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/workspace/workspace_event_handler.h
diff --git a/ash/common/wm/workspace/workspace_event_handler.h b/ash/common/wm/workspace/workspace_event_handler.h
deleted file mode 100644
index eca5650367047c0ad8efc14a1a6976c8855718c9..0000000000000000000000000000000000000000
--- a/ash/common/wm/workspace/workspace_event_handler.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
-#define ASH_COMMON_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/wm/workspace/multi_window_resize_controller.h"
-#include "base/macros.h"
-
-namespace ui {
-class GestureEvent;
-class MouseEvent;
-}
-
-namespace ash {
-class WmWindow;
-class WorkspaceEventHandlerTestHelper;
-
-namespace wm {
-class WindowState;
-}
-
-// ui::EventHandler like class installed on the window associated with
-// WorkspaceLayoutManager. This handles various events happening on child
-// windows and takes appropriate action. It is expected the environment specific
-// file calls OnMouseEvent()/OnGestureEvent() as appropriate.
-class ASH_EXPORT WorkspaceEventHandler {
- public:
- WorkspaceEventHandler();
- virtual ~WorkspaceEventHandler();
-
- void OnMouseEvent(ui::MouseEvent* event, WmWindow* target);
- void OnGestureEvent(ui::GestureEvent* event, WmWindow* target);
-
- private:
- friend class WorkspaceEventHandlerTestHelper;
-
- // 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(wm::WindowState* window_state,
- ui::MouseEvent* event);
-
- MultiWindowResizeController multi_window_resize_controller_;
-
- // The non-client component for the target of a MouseEvent or GestureEvent.
- // Events can be destructive to the window tree, which can cause the
- // component of a ui::EF_IS_DOUBLE_CLICK event to no longer be the same as
- // that of the initial click. Acting on a double click should only occur for
- // matching components. This will be set for left clicks, and tap events.
- int click_component_;
-
- DISALLOW_COPY_AND_ASSIGN(WorkspaceEventHandler);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_WORKSPACE_WORKSPACE_EVENT_HANDLER_H_
« no previous file with comments | « ash/common/wm/workspace/two_step_edge_cycler.cc ('k') | ash/common/wm/workspace/workspace_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698