Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: ash/host/ash_window_tree_host.h

Issue 2821203002: cros: Adds ShellPort functions for simplified display mode (Closed)
Patch Set: cleanup Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
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 // Creates the appropriate AshWindowTreeHost implementation. The return
35 // value is owned by the RootWindowController associated with the
36 // AshWindowTreeHost.
35 static AshWindowTreeHost* Create( 37 static AshWindowTreeHost* Create(
James Cook 2017/04/18 00:43:39 It would be nice if this returned unique_ptr<>, ev
sky 2017/04/18 02:55:10 I actually had that in an earlier patch, but convi
36 const AshWindowTreeHostInitParams& init_params); 38 const AshWindowTreeHostInitParams& init_params);
37 39
38 void set_input_method_handler(InputMethodEventHandler* input_method_handler) { 40 void set_input_method_handler(InputMethodEventHandler* input_method_handler) {
39 input_method_handler_ = input_method_handler; 41 input_method_handler_ = input_method_handler;
40 } 42 }
41 43
42 InputMethodEventHandler* input_method_handler() { 44 InputMethodEventHandler* input_method_handler() {
43 return input_method_handler_; 45 return input_method_handler_;
44 } 46 }
45 47
(...skipping 24 matching lines...) Expand all
70 // Translates the native mouse location into screen coordinates. 72 // Translates the native mouse location into screen coordinates.
71 void TranslateLocatedEvent(ui::LocatedEvent* event); 73 void TranslateLocatedEvent(ui::LocatedEvent* event);
72 74
73 private: 75 private:
74 InputMethodEventHandler* input_method_handler_; 76 InputMethodEventHandler* input_method_handler_;
75 }; 77 };
76 78
77 } // namespace ash 79 } // namespace ash
78 80
79 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ 81 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ash/host/DEPS ('k') | ash/host/ash_window_tree_host.cc » ('j') | ash/shell_port.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698