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

Side by Side Diff: services/ui/public/cpp/window_tree_client.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: merge 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TREE_CLIENT_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 ClientSpecificId requesting_client_id, 334 ClientSpecificId requesting_client_id,
335 mojo::Map<mojo::String, mojo::Array<uint8_t>> 335 mojo::Map<mojo::String, mojo::Array<uint8_t>>
336 transport_properties) override; 336 transport_properties) override;
337 void WmClientJankinessChanged(ClientSpecificId client_id, 337 void WmClientJankinessChanged(ClientSpecificId client_id,
338 bool janky) override; 338 bool janky) override;
339 void WmPerformMoveLoop(uint32_t change_id, 339 void WmPerformMoveLoop(uint32_t change_id,
340 Id window_id, 340 Id window_id,
341 mojom::MoveLoopSource source, 341 mojom::MoveLoopSource source,
342 const gfx::Point& cursor_location) override; 342 const gfx::Point& cursor_location) override;
343 void WmCancelMoveLoop(uint32_t window_id) override; 343 void WmCancelMoveLoop(uint32_t window_id) override;
344 void OnAccelerator(uint32_t id, std::unique_ptr<ui::Event> event) override; 344 void OnAccelerator(uint32_t ack_id,
345 uint32_t accelerator_id,
346 std::unique_ptr<ui::Event> event) override;
345 347
346 // Overridden from WindowManagerClient: 348 // Overridden from WindowManagerClient:
347 void SetFrameDecorationValues( 349 void SetFrameDecorationValues(
348 mojom::FrameDecorationValuesPtr values) override; 350 mojom::FrameDecorationValuesPtr values) override;
349 void SetNonClientCursor(Window* window, ui::mojom::Cursor cursor_id) override; 351 void SetNonClientCursor(Window* window, ui::mojom::Cursor cursor_id) override;
350 void AddAccelerator(uint32_t id, 352 void AddAccelerator(uint32_t id,
351 mojom::EventMatcherPtr event_matcher, 353 mojom::EventMatcherPtr event_matcher,
352 const base::Callback<void(bool)>& callback) override; 354 const base::Callback<void(bool)>& callback) override;
353 void RemoveAccelerator(uint32_t id) override; 355 void RemoveAccelerator(uint32_t id) override;
354 void AddActivationParent(Window* window) override; 356 void AddActivationParent(Window* window) override;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 base::Callback<void(bool)> on_current_move_finished_; 429 base::Callback<void(bool)> on_current_move_finished_;
428 430
429 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 431 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
430 432
431 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 433 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
432 }; 434 };
433 435
434 } // namespace ui 436 } // namespace ui
435 437
436 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 438 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_manager_delegate.cc ('k') | services/ui/public/interfaces/event_matcher.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698