| OLD | NEW |
| 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_DISPLAY_MOUSE_CURSOR_EVENT_FILTER_H | 5 #ifndef ASH_DISPLAY_MOUSE_CURSOR_EVENT_FILTER_H |
| 6 #define ASH_DISPLAY_MOUSE_CURSOR_EVENT_FILTER_H | 6 #define ASH_DISPLAY_MOUSE_CURSOR_EVENT_FILTER_H |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/display/display_controller.h" | 9 #include "ash/display/display_controller.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void set_mouse_warp_mode(MouseWarpMode mouse_warp_mode) { | 40 void set_mouse_warp_mode(MouseWarpMode mouse_warp_mode) { |
| 41 mouse_warp_mode_ = mouse_warp_mode; | 41 mouse_warp_mode_ = mouse_warp_mode; |
| 42 } | 42 } |
| 43 | 43 |
| 44 // Shows/Hide the indicator for window dragging. The |from| | 44 // Shows/Hide the indicator for window dragging. The |from| |
| 45 // is the window where the dragging started. | 45 // is the window where the dragging started. |
| 46 void ShowSharedEdgeIndicator(aura::Window* from); | 46 void ShowSharedEdgeIndicator(aura::Window* from); |
| 47 void HideSharedEdgeIndicator(); | 47 void HideSharedEdgeIndicator(); |
| 48 | 48 |
| 49 // DisplayController::Observer: | 49 // DisplayController::Observer: |
| 50 virtual void OnDisplaysInitialized() OVERRIDE; | 50 virtual void OnDisplaysInitialized() override; |
| 51 virtual void OnDisplayConfigurationChanged() OVERRIDE; | 51 virtual void OnDisplayConfigurationChanged() override; |
| 52 | 52 |
| 53 // ui::EventHandler: | 53 // ui::EventHandler: |
| 54 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 54 virtual void OnMouseEvent(ui::MouseEvent* event) override; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 friend class DragWindowResizerTest; | 57 friend class DragWindowResizerTest; |
| 58 friend class MouseCursorEventFilterTest; | 58 friend class MouseCursorEventFilterTest; |
| 59 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, DoNotWarpTwice); | 59 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, DoNotWarpTwice); |
| 60 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, SetMouseWarpModeFlag); | 60 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, SetMouseWarpModeFlag); |
| 61 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, | 61 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, |
| 62 IndicatorBoundsTestOnRight); | 62 IndicatorBoundsTestOnRight); |
| 63 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, | 63 FRIEND_TEST_ALL_PREFIXES(MouseCursorEventFilterTest, |
| 64 IndicatorBoundsTestOnLeft); | 64 IndicatorBoundsTestOnLeft); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Shows the area where a window can be dragged in to/out from | 123 // Shows the area where a window can be dragged in to/out from |
| 124 // another display. | 124 // another display. |
| 125 scoped_ptr<SharedDisplayEdgeIndicator> shared_display_edge_indicator_; | 125 scoped_ptr<SharedDisplayEdgeIndicator> shared_display_edge_indicator_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(MouseCursorEventFilter); | 127 DISALLOW_COPY_AND_ASSIGN(MouseCursorEventFilter); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace ash | 130 } // namespace ash |
| 131 | 131 |
| 132 #endif // ASH_DISPLAY_MOUSE_CURSOR_EVENT_FILTER_H | 132 #endif // ASH_DISPLAY_MOUSE_CURSOR_EVENT_FILTER_H |
| OLD | NEW |