| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 ASH_HOST_ASH_WINDOW_TREE_HOST_H_ | 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_H_ |
| 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_ | 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 struct AshWindowTreeHostInitParams; | 25 struct AshWindowTreeHostInitParams; |
| 26 class InputMethodEventHandler; | 26 class InputMethodEventHandler; |
| 27 class RootWindowTransformer; | 27 class RootWindowTransformer; |
| 28 | 28 |
| 29 class ASH_EXPORT AshWindowTreeHost { | 29 class ASH_EXPORT AshWindowTreeHost { |
| 30 public: | 30 public: |
| 31 AshWindowTreeHost(); | 31 AshWindowTreeHost(); |
| 32 virtual ~AshWindowTreeHost() {} | 32 virtual ~AshWindowTreeHost(); |
| 33 | 33 |
| 34 // Creates a new AshWindowTreeHost. The caller owns the returned value. | 34 static std::unique_ptr<AshWindowTreeHost> Create( |
| 35 static AshWindowTreeHost* Create( | |
| 36 const AshWindowTreeHostInitParams& init_params); | 35 const AshWindowTreeHostInitParams& init_params); |
| 37 | 36 |
| 38 void set_input_method_handler(InputMethodEventHandler* input_method_handler) { | 37 void set_input_method_handler(InputMethodEventHandler* input_method_handler) { |
| 39 input_method_handler_ = input_method_handler; | 38 input_method_handler_ = input_method_handler; |
| 40 } | 39 } |
| 41 | 40 |
| 42 InputMethodEventHandler* input_method_handler() { | 41 InputMethodEventHandler* input_method_handler() { |
| 43 return input_method_handler_; | 42 return input_method_handler_; |
| 44 } | 43 } |
| 45 | 44 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 70 // Translates the native mouse location into screen coordinates. | 69 // Translates the native mouse location into screen coordinates. |
| 71 void TranslateLocatedEvent(ui::LocatedEvent* event); | 70 void TranslateLocatedEvent(ui::LocatedEvent* event); |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 InputMethodEventHandler* input_method_handler_; | 73 InputMethodEventHandler* input_method_handler_; |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace ash | 76 } // namespace ash |
| 78 | 77 |
| 79 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ | 78 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ |
| OLD | NEW |