| OLD | NEW |
| (Empty) |
| 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 | |
| 5 #ifndef BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ | |
| 6 #define BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "ui/aura/window_tree_host_platform.h" | |
| 12 | |
| 13 namespace blimp { | |
| 14 namespace engine { | |
| 15 | |
| 16 // This WindowTreeHost represents a top-level window in a blimp client, and its | |
| 17 // children. | |
| 18 // Note that the Aura WindowTreeHost impl creates a compositor internally, | |
| 19 // which will eventually get replaced with client-side rendering. | |
| 20 class BlimpWindowTreeHost : public aura::WindowTreeHostPlatform { | |
| 21 public: | |
| 22 BlimpWindowTreeHost(); | |
| 23 ~BlimpWindowTreeHost() override; | |
| 24 | |
| 25 private: | |
| 26 // aura::WindowTreeHostPlatform overrides. | |
| 27 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, | |
| 28 float device_pixel_ratio) override; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(BlimpWindowTreeHost); | |
| 31 }; | |
| 32 | |
| 33 } // namespace engine | |
| 34 } // namespace blimp | |
| 35 | |
| 36 #endif // BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ | |
| OLD | NEW |