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

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

Issue 2821203002: cros: Adds ShellPort functions for simplified display mode (Closed)
Patch Set: Fix x11 build 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
« no previous file with comments | « ash/host/DEPS ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « ash/host/DEPS ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698