| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ | 5 #ifndef BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ |
| 6 #define BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ | 6 #define BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/aura/window_tree_host_platform.h" | 10 #include "ui/aura/window_tree_host_platform.h" |
| 11 | 11 |
| 12 namespace blimp { | 12 namespace blimp { |
| 13 namespace engine { | 13 namespace engine { |
| 14 | 14 |
| 15 // This WindowTreeHost represents a top-level window in a blimp client, and its | 15 // This WindowTreeHost represents a top-level window in a blimp client, and its |
| 16 // children. | 16 // children. |
| 17 // Note that the Aura WindowTreeHost impl creates a compositor internally, | 17 // Note that the Aura WindowTreeHost impl creates a compositor internally, |
| 18 // which will eventually get replaced with client-side rendering. | 18 // which will eventually get replaced with client-side rendering. |
| 19 class BlimpWindowTreeHost : public aura::WindowTreeHostPlatform { | 19 class BlimpWindowTreeHost : public aura::WindowTreeHostPlatform { |
| 20 public: | 20 public: |
| 21 BlimpWindowTreeHost(); | 21 BlimpWindowTreeHost(); |
| 22 ~BlimpWindowTreeHost() override; | 22 ~BlimpWindowTreeHost() override; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 // aura::WindowTreeHostPlatform overrides. |
| 26 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, |
| 27 float device_pixel_ratio) override; |
| 28 |
| 25 DISALLOW_COPY_AND_ASSIGN(BlimpWindowTreeHost); | 29 DISALLOW_COPY_AND_ASSIGN(BlimpWindowTreeHost); |
| 26 }; | 30 }; |
| 27 | 31 |
| 28 } // namespace engine | 32 } // namespace engine |
| 29 } // namespace blimp | 33 } // namespace blimp |
| 30 | 34 |
| 31 #endif // BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ | 35 #endif // BLIMP_ENGINE_APP_UI_BLIMP_WINDOW_TREE_HOST_H_ |
| OLD | NEW |