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

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

Issue 1883263002: mash: Repost mouse pressed event when closing Ash system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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/test_change_tracker.h » ('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 18 matching lines...) Expand all
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 // |in_nonclient_area| is true if the event occurred in the non-client area. 38 // |in_nonclient_area| is true if the event occurred in the non-client area.
39 // For pointer events the event has a location in the coordinates of the
40 // target window.
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& transformed_event,
42 Accelerator* accelerator) = 0; 44 Accelerator* accelerator) = 0;
43 45
44 protected: 46 protected:
45 virtual ~EventDispatcherDelegate() {} 47 virtual ~EventDispatcherDelegate() {}
46 }; 48 };
47 49
48 } // namespace ws 50 } // namespace ws
49 } // namespace mus 51 } // namespace mus
50 52
51 #endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ 53 #endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/event_dispatcher.cc ('k') | components/mus/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698