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

Unified Diff: services/ui/common/event_matcher_util.cc

Issue 2520093003: WindowManagerClient::AddAccelerator() should take an array (Closed)
Patch Set: Use std::move instead of Clone() Created 4 years 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 | « services/ui/common/event_matcher_util.h ('k') | services/ui/public/cpp/window_manager_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/common/event_matcher_util.cc
diff --git a/services/ui/common/event_matcher_util.cc b/services/ui/common/event_matcher_util.cc
deleted file mode 100644
index 64028b393c3b5b3eca7b5731305d4a512ee12142..0000000000000000000000000000000000000000
--- a/services/ui/common/event_matcher_util.cc
+++ /dev/null
@@ -1,28 +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.
-
-#include "services/ui/common/event_matcher_util.h"
-
-namespace ui {
-
-mojom::EventMatcherPtr CreateKeyMatcher(ui::mojom::KeyboardCode code,
- int flags) {
- mojom::EventMatcherPtr matcher(mojom::EventMatcher::New());
- matcher->type_matcher = mojom::EventTypeMatcher::New();
- matcher->flags_matcher = mojom::EventFlagsMatcher::New();
- matcher->ignore_flags_matcher = mojom::EventFlagsMatcher::New();
- // Ignoring these makes most accelerator scenarios more straight forward. Code
- // that needs to check them can override this setting.
- matcher->ignore_flags_matcher->flags = ui::mojom::kEventFlagCapsLockOn |
- ui::mojom::kEventFlagScrollLockOn |
- ui::mojom::kEventFlagNumLockOn;
- matcher->key_matcher = mojom::KeyEventMatcher::New();
-
- matcher->type_matcher->type = ui::mojom::EventType::KEY_PRESSED;
- matcher->flags_matcher->flags = flags;
- matcher->key_matcher->keyboard_code = code;
- return matcher;
-}
-
-} // namespace ui
« no previous file with comments | « services/ui/common/event_matcher_util.h ('k') | services/ui/public/cpp/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698