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

Side by Side Diff: services/ui/public/cpp/window_manager_delegate.h

Issue 2125883003: Adds ability for pre-target accelerators to not consume events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 5 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
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 SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // windows owned by the window manager in which the client is embedded. 99 // windows owned by the window manager in which the client is embedded.
100 virtual void OnWmClientJankinessChanged( 100 virtual void OnWmClientJankinessChanged(
101 const std::set<Window*>& client_windows, 101 const std::set<Window*>& client_windows,
102 bool janky) = 0; 102 bool janky) = 0;
103 103
104 // Called when a display is added. |window| is the root of the window tree for 104 // Called when a display is added. |window| is the root of the window tree for
105 // the specified display. 105 // the specified display.
106 virtual void OnWmNewDisplay(Window* window, 106 virtual void OnWmNewDisplay(Window* window,
107 const display::Display& display) = 0; 107 const display::Display& display) = 0;
108 108
109 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; 109 virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event);
sadrul 2016/07/08 15:40:43 ui::EventResult instead?
sky 2016/07/08 16:23:51 This code only cares about two results. ui::EventR
110 110
111 virtual void OnWmPerformMoveLoop( 111 virtual void OnWmPerformMoveLoop(
112 Window* window, 112 Window* window,
113 ui::mojom::MoveLoopSource source, 113 ui::mojom::MoveLoopSource source,
114 const gfx::Point& cursor_location, 114 const gfx::Point& cursor_location,
115 const base::Callback<void(bool)>& on_done) = 0; 115 const base::Callback<void(bool)>& on_done) = 0;
116 116
117 virtual void OnWmCancelMoveLoop(Window* window) = 0; 117 virtual void OnWmCancelMoveLoop(Window* window) = 0;
118 118
119 protected: 119 protected:
120 virtual ~WindowManagerDelegate() {} 120 virtual ~WindowManagerDelegate() {}
121 }; 121 };
122 122
123 } // namespace ui 123 } // namespace ui
124 124
125 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 125 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698