OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_CLIENT_H_ |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/aura/client/window_tree_client.h" |
| 10 |
| 11 namespace headless { |
| 12 |
| 13 class HeadlessWindowTreeClient : public aura::client::WindowTreeClient { |
| 14 public: |
| 15 explicit HeadlessWindowTreeClient(aura::Window* root_window); |
| 16 ~HeadlessWindowTreeClient() override; |
| 17 |
| 18 aura::Window* GetDefaultParent(aura::Window* context, |
| 19 aura::Window* window, |
| 20 const gfx::Rect& bounds) override; |
| 21 |
| 22 private: |
| 23 aura::Window* root_window_; // Not owned. |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(HeadlessWindowTreeClient); |
| 26 }; |
| 27 |
| 28 } // namespace headless |
| 29 |
| 30 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |