Index: components/mus/ws/accelerator.cc |
diff --git a/components/mus/ws/accelerator.cc b/components/mus/ws/accelerator.cc |
deleted file mode 100644 |
index fd8cde39668988dadefdd20fe7b6e26c0c16d603..0000000000000000000000000000000000000000 |
--- a/components/mus/ws/accelerator.cc |
+++ /dev/null |
@@ -1,33 +0,0 @@ |
-// Copyright 2016 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 "components/mus/ws/accelerator.h" |
- |
-namespace mus { |
-namespace ws { |
- |
-Accelerator::Accelerator(uint32_t id, const mojom::EventMatcher& matcher) |
- : id_(id), |
- accelerator_phase_(matcher.accelerator_phase), |
- event_matcher_(matcher), |
- weak_factory_(this) {} |
- |
-Accelerator::~Accelerator() {} |
- |
-bool Accelerator::MatchesEvent(const ui::Event& event, |
- const ui::mojom::AcceleratorPhase phase) const { |
- if (accelerator_phase_ != phase) |
- return false; |
- if (!event_matcher_.MatchesEvent(event)) |
- return false; |
- return true; |
-} |
- |
-bool Accelerator::EqualEventMatcher(const Accelerator* other) const { |
- return accelerator_phase_ == other->accelerator_phase_ && |
- event_matcher_.Equals(other->event_matcher_); |
-} |
- |
-} // namespace ws |
-} // namespace mus |