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

Side by Side Diff: ui/views/mus/window_manager_connection.h

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 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 | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/window_manager_connection.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 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 UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 5 #ifndef UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 WindowManagerConnection(shell::Connector* connector, 68 WindowManagerConnection(shell::Connector* connector,
69 const shell::Identity& identity); 69 const shell::Identity& identity);
70 ~WindowManagerConnection() override; 70 ~WindowManagerConnection() override;
71 71
72 // Returns true if there is one or more pointer watchers for this client. 72 // Returns true if there is one or more pointer watchers for this client.
73 bool HasPointerWatcher(); 73 bool HasPointerWatcher();
74 74
75 // mus::WindowTreeDelegate: 75 // mus::WindowTreeDelegate:
76 void OnEmbed(mus::Window* root) override; 76 void OnEmbed(mus::Window* root) override;
77 void OnConnectionLost(mus::WindowTreeConnection* connection) override; 77 void OnConnectionLost(mus::WindowTreeConnection* connection) override;
78 void OnEventObserved(const ui::Event& event) override; 78 void OnEventObserved(const ui::Event& event, mus::Window* target) override;
79 79
80 // ScreenMusDelegate: 80 // ScreenMusDelegate:
81 void OnWindowManagerFrameValuesChanged() override; 81 void OnWindowManagerFrameValuesChanged() override;
82 gfx::Point GetCursorScreenPoint() override; 82 gfx::Point GetCursorScreenPoint() override;
83 83
84 shell::Connector* connector_; 84 shell::Connector* connector_;
85 shell::Identity identity_; 85 shell::Identity identity_;
86 std::unique_ptr<ScreenMus> screen_; 86 std::unique_ptr<ScreenMus> screen_;
87 std::unique_ptr<mus::WindowTreeConnection> window_tree_connection_; 87 std::unique_ptr<mus::WindowTreeConnection> window_tree_connection_;
88 // Must be empty on destruction. 88 // Must be empty on destruction.
89 base::ObserverList<PointerWatcher, true> pointer_watchers_; 89 base::ObserverList<PointerWatcher, true> pointer_watchers_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); 91 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection);
92 }; 92 };
93 93
94 } // namespace views 94 } // namespace views
95 95
96 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 96 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698