summaryrefslogtreecommitdiff
path: root/chromium/ui/events/system_input_injector.cc
blob: bbeb84dccbfbdb92bc911e52035f158eb2165994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2017 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 "ui/events/system_input_injector.h"


namespace ui {

namespace {
SystemInputInjectorFactory* override_factory_ = nullptr;
}  // namespace

void SetSystemInputInjectorFactory(SystemInputInjectorFactory* factory) {
  DCHECK(!factory || !override_factory_);
  override_factory_ = factory;
}

SystemInputInjectorFactory* GetSystemInputInjectorFactory() {
  return override_factory_;
}

}  // namespace ui