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

Unified Diff: ui/aura_shell/default_container_event_filter.h

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « ui/aura_shell/compact_layout_manager.cc ('k') | ui/aura_shell/default_container_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/default_container_event_filter.h
===================================================================
--- ui/aura_shell/default_container_event_filter.h (revision 115655)
+++ ui/aura_shell/default_container_event_filter.h (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 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 UI_AURA_SHELL_DEFAULT_CONTAINER_EVENT_FILTER_H_
-#define UI_AURA_SHELL_DEFAULT_CONTAINER_EVENT_FILTER_H_
-#pragma once
-
-#include "ui/aura_shell/toplevel_window_event_filter.h"
-
-namespace aura {
-class MouseEvent;
-class Window;
-}
-
-namespace aura_shell {
-namespace internal {
-
-class DefaultContainerEventFilter : public ToplevelWindowEventFilter {
- public:
- explicit DefaultContainerEventFilter(aura::Window* owner);
- virtual ~DefaultContainerEventFilter();
-
- // Overridden from ToplevelWindowEventFilter:
- virtual bool PreHandleMouseEvent(aura::Window* target,
- aura::MouseEvent* event) OVERRIDE;
-
- private:
- enum DragState {
- DRAG_NONE,
- DRAG_MOVE,
- DRAG_RESIZE
- };
-
- // If the mouse is currently over a portion of the window that should
- // trigger a drag or resize, drag_state_ is set appropriately and true
- // is returned. If the mouse is not over a portion of the window that should
- // trigger a more or resize, drag_state_ is not updated and false is returend.
- bool UpdateDragState();
-
- // Updates the top-level window under the mouse so that we can change
- // the look of the caption area based on mouse-hover.
- void UpdateHoveredWindow(aura::Window* toplevel);
-
- DragState drag_state_;
- // Top-level window under the mouse cursor.
- aura::Window* hovered_window_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultContainerEventFilter);
-};
-
-} // namespace internal
-} // namespace aura_shell
-
-#endif // UI_AURA_SHELL_DEFAULT_CONTAINER_EVENT_FILTER_H_
« no previous file with comments | « ui/aura_shell/compact_layout_manager.cc ('k') | ui/aura_shell/default_container_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698