OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef ASH_HOST_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 6 #define ASH_HOST_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 |
| 10 #include "ash/ash_export.h" |
| 11 #include "ash/host/ash_window_tree_host.h" |
| 12 #include "ash/host/transformer_helper.h" |
| 13 #include "base/macros.h" |
| 14 #include "ui/aura/remote_window_tree_host_win.h" |
| 15 |
| 16 namespace ash { |
| 17 |
| 18 class ASH_EXPORT AshRemoteWindowTreeHostWin |
| 19 : public AshWindowTreeHost, |
| 20 public aura::RemoteWindowTreeHostWin { |
| 21 public: |
| 22 explicit AshRemoteWindowTreeHostWin(HWND remote_hwnd); |
| 23 |
| 24 private: |
| 25 ~AshRemoteWindowTreeHostWin() override; |
| 26 |
| 27 // AshWindowTreeHost: |
| 28 void ToggleFullScreen() override; |
| 29 bool ConfineCursorToRootWindow() override; |
| 30 void UnConfineCursor() override; |
| 31 void SetRootWindowTransformer( |
| 32 scoped_ptr<RootWindowTransformer> transformer) override; |
| 33 gfx::Insets GetHostInsets() const override; |
| 34 aura::WindowTreeHost* AsWindowTreeHost() override; |
| 35 |
| 36 // WindowTreeHostWin: |
| 37 gfx::Transform GetRootTransform() const override; |
| 38 void SetRootTransform(const gfx::Transform& transform) override; |
| 39 gfx::Transform GetInverseRootTransform() const override; |
| 40 void UpdateRootWindowSize(const gfx::Size& host_size) override; |
| 41 |
| 42 // ui::internal::InputMethodDelegate: |
| 43 ui::EventDispatchDetails DispatchKeyEventPostIME( |
| 44 ui::KeyEvent* event) override; |
| 45 |
| 46 TransformerHelper transformer_helper_; |
| 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(AshRemoteWindowTreeHostWin); |
| 49 }; |
| 50 |
| 51 } // namespace ash |
| 52 |
| 53 #endif // ASH_HOST_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |