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

Side by Side Diff: components/mus/ws/event_dispatcher_delegate.h

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with tot Created 4 years, 7 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
« no previous file with comments | « components/mus/ws/event_dispatcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_
6 #define COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ 6 #define COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 namespace ui { 10 namespace ui {
(...skipping 17 matching lines...) Expand all
28 // Called when capture should be set on the native display. 28 // Called when capture should be set on the native display.
29 virtual void SetNativeCapture() = 0; 29 virtual void SetNativeCapture() = 0;
30 // Called when the native display is having capture released. There is no 30 // Called when the native display is having capture released. There is no
31 // longer a ServerWindow holding capture. 31 // longer a ServerWindow holding capture.
32 virtual void ReleaseNativeCapture() = 0; 32 virtual void ReleaseNativeCapture() = 0;
33 // Called when |window| has lost capture. The native display may still be 33 // Called when |window| has lost capture. The native display may still be
34 // holding capture. The delegate should not change native display capture. 34 // holding capture. The delegate should not change native display capture.
35 // ReleaseNativeCapture is invoked if appropriate. 35 // ReleaseNativeCapture is invoked if appropriate.
36 virtual void OnServerWindowCaptureLost(ServerWindow* window) = 0; 36 virtual void OnServerWindowCaptureLost(ServerWindow* window) = 0;
37 37
38 virtual void OnMouseCursorLocationChanged(const gfx::Point& point) = 0;
39
38 // |in_nonclient_area| is true if the event occurred in the non-client area. 40 // |in_nonclient_area| is true if the event occurred in the non-client area.
39 virtual void DispatchInputEventToWindow(ServerWindow* target, 41 virtual void DispatchInputEventToWindow(ServerWindow* target,
40 bool in_nonclient_area, 42 bool in_nonclient_area,
41 const ui::Event& event, 43 const ui::Event& event,
42 Accelerator* accelerator) = 0; 44 Accelerator* accelerator) = 0;
43 45
44 // Called when event dispatch could not find a target. OnAccelerator may still 46 // Called when event dispatch could not find a target. OnAccelerator may still
45 // be called. 47 // be called.
46 virtual void OnEventTargetNotFound(const ui::Event& event) = 0; 48 virtual void OnEventTargetNotFound(const ui::Event& event) = 0;
47 49
48 protected: 50 protected:
49 virtual ~EventDispatcherDelegate() {} 51 virtual ~EventDispatcherDelegate() {}
50 }; 52 };
51 53
52 } // namespace ws 54 } // namespace ws
53 } // namespace mus 55 } // namespace mus
54 56
55 #endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ 57 #endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/event_dispatcher.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698