MD downloads: care about keyboard focus again
[chromium-blink-merge.git] / ui / ozone / public / gpu_platform_support_host.cc
blobe1ab0a41594474645a380efc43bf37b129e4bac6
1 // Copyright 2014 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.
5 #include "ui/ozone/public/gpu_platform_support_host.h"
7 #include "base/logging.h"
8 #include "base/trace_event/trace_event.h"
9 #include "ui/ozone/ozone_export.h"
11 namespace ui {
13 namespace {
15 // No-op implementations of GpuPlatformSupportHost.
16 class StubGpuPlatformSupportHost : public GpuPlatformSupportHost {
17 public:
18 // GpuPlatformSupportHost:
19 void OnChannelEstablished(
20 int host_id,
21 scoped_refptr<base::SingleThreadTaskRunner> send_runner,
22 const base::Callback<void(IPC::Message*)>& send_callback) override {}
24 void OnChannelDestroyed(int host_id) override {}
25 bool OnMessageReceived(const IPC::Message&) override { return false; }
28 } // namespace
30 GpuPlatformSupportHost::GpuPlatformSupportHost() {
33 GpuPlatformSupportHost::~GpuPlatformSupportHost() {
36 GpuPlatformSupportHost* CreateStubGpuPlatformSupportHost() {
37 return new StubGpuPlatformSupportHost;
40 } // namespace ui