platform_event_source_test_api.cc 674 B

1234567891011121314151617181920212223
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/events/test/platform_event_source_test_api.h"
  5. #include "ui/events/platform/platform_event_source.h"
  6. namespace ui {
  7. namespace test {
  8. PlatformEventSourceTestAPI::PlatformEventSourceTestAPI(
  9. PlatformEventSource* event_source)
  10. : event_source_(event_source) {}
  11. PlatformEventSourceTestAPI::~PlatformEventSourceTestAPI() {}
  12. void PlatformEventSourceTestAPI::Dispatch(PlatformEvent platform_event) {
  13. event_source_->DispatchEvent(platform_event);
  14. }
  15. } // namespace test
  16. } // namespace ui