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

Side by Side Diff: services/ui/ws/display.h

Issue 2863913004: chromeos: makes mus send keyevents to display root when nothing has focus (Closed)
Patch Set: GetClientVisibleRoot Created 3 years, 7 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 | « services/ui/ws/cursor_unittest.cc ('k') | services/ui/ws/window_manager_display_root.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_UI_WS_DISPLAY_H_ 5 #ifndef SERVICES_UI_WS_DISPLAY_H_
6 #define SERVICES_UI_WS_DISPLAY_H_ 6 #define SERVICES_UI_WS_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 public EventSink { 65 public EventSink {
66 public: 66 public:
67 explicit Display(WindowServer* window_server); 67 explicit Display(WindowServer* window_server);
68 ~Display() override; 68 ~Display() override;
69 69
70 // Initializes the display root ServerWindow and PlatformDisplay. Adds this to 70 // Initializes the display root ServerWindow and PlatformDisplay. Adds this to
71 // DisplayManager as a pending display, until accelerated widget is available. 71 // DisplayManager as a pending display, until accelerated widget is available.
72 void Init(const display::ViewportMetrics& metrics, 72 void Init(const display::ViewportMetrics& metrics,
73 std::unique_ptr<DisplayBinding> binding); 73 std::unique_ptr<DisplayBinding> binding);
74 74
75 // Returns an ID for this display. In internal mode this the display::Display 75 // Returns the ID for this display. In internal mode this is the
76 // ID. In external mode this hasn't been defined yet. 76 // display::Display ID. In external mode this hasn't been defined yet.
77 int64_t GetId() const; 77 int64_t GetId() const;
78 78
79 // Sets the display::Display corresponding to this ws::Display. This is only 79 // Sets the display::Display corresponding to this ws::Display. This is only
80 // valid in internal window mode. 80 // valid in internal window mode.
81 void SetDisplay(const display::Display& display); 81 void SetDisplay(const display::Display& display);
82 82
83 // PlatformDisplayDelegate: 83 // PlatformDisplayDelegate:
84 const display::Display& GetDisplay() override; 84 const display::Display& GetDisplay() override;
85 85
86 DisplayManager* display_manager(); 86 DisplayManager* display_manager();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 WindowManagerDisplayRootMap window_manager_display_root_map_; 228 WindowManagerDisplayRootMap window_manager_display_root_map_;
229 229
230 DISALLOW_COPY_AND_ASSIGN(Display); 230 DISALLOW_COPY_AND_ASSIGN(Display);
231 }; 231 };
232 232
233 } // namespace ws 233 } // namespace ws
234 } // namespace ui 234 } // namespace ui
235 235
236 #endif // SERVICES_UI_WS_DISPLAY_H_ 236 #endif // SERVICES_UI_WS_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/cursor_unittest.cc ('k') | services/ui/ws/window_manager_display_root.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698