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

Unified Diff: components/mus/public/interfaces/event_matcher.mojom

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/public/interfaces/display.mojom ('k') | components/mus/public/interfaces/gpu.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/event_matcher.mojom
diff --git a/components/mus/public/interfaces/event_matcher.mojom b/components/mus/public/interfaces/event_matcher.mojom
deleted file mode 100644
index 34ec670f00f67ee49fd1bccc70c8966f2a5ad15f..0000000000000000000000000000000000000000
--- a/components/mus/public/interfaces/event_matcher.mojom
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mus.mojom;
-
-import "ui/events/mojo/event_constants.mojom";
-import "ui/events/mojo/keyboard_codes.mojom";
-import "ui/gfx/geometry/mojo/geometry.mojom";
-
-struct KeyEventMatcher {
- ui.mojom.KeyboardCode keyboard_code;
-};
-
-struct PointerKindMatcher {
- ui.mojom.PointerKind pointer_kind;
-};
-
-struct PointerLocationMatcher {
- gfx.mojom.RectF region;
-};
-
-struct EventTypeMatcher {
- ui.mojom.EventType type;
-};
-
-struct EventFlagsMatcher {
- // A bitfield of kEventFlag* and kMouseEventFlag* values in
- // input_event_constants.mojom.
- int32 flags;
-};
-
-// If a specific matcher is missing, then an Event will match this EventMatcher
-// (if relevant). For example, if |type_matcher| is missing, then events of all
-// types will match this EventMatcher. Similarly, if |key_matcher| is missing,
-// then all key-events will match.
-// An example matcher to match the Ctrl+A accelerator would be:
-// - |type_matcher.type| = ui::mojom::EventType::KEY_PRESSED
-// - |flags_matcher.flags| = ui::mojom::kEventVlagControlDown
-// - |key_matcher.keyboard_code| = ui::mojom::KeyboardCode::A
-//
-// A matcher to match any key-press event would be:
-// - |type_matcher.type| = ui::mojom::EventType::KEY_PRESSED
-struct EventMatcher {
- // TODO(jamescook): Move this to somewhere accelerator-specific.
- ui.mojom.AcceleratorPhase accelerator_phase;
- EventTypeMatcher? type_matcher;
- EventFlagsMatcher? flags_matcher;
- // These flags will be stripped from incoming events' flags when comparing
- // against |flags_matcher|.
- EventFlagsMatcher? ignore_flags_matcher;
- KeyEventMatcher? key_matcher;
- PointerKindMatcher? pointer_kind_matcher;
- PointerLocationMatcher? pointer_location_matcher;
-};
« no previous file with comments | « components/mus/public/interfaces/display.mojom ('k') | components/mus/public/interfaces/gpu.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698