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

Side by Side Diff: services/ui/public/cpp/window_tree_client.h

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Don't follow null surface_info Created 4 years, 2 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/public/cpp/window_private.h ('k') | services/ui/public/cpp/window_tree_client.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 SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 uint32_t flags, 126 uint32_t flags,
127 const mojom::WindowTree::EmbedCallback& callback); 127 const mojom::WindowTree::EmbedCallback& callback);
128 128
129 void RequestClose(Window* window); 129 void RequestClose(Window* window);
130 130
131 void AttachSurface(Id window_id, 131 void AttachSurface(Id window_id,
132 mojom::SurfaceType type, 132 mojom::SurfaceType type,
133 mojo::InterfaceRequest<mojom::Surface> surface, 133 mojo::InterfaceRequest<mojom::Surface> surface,
134 mojom::SurfaceClientPtr client); 134 mojom::SurfaceClientPtr client);
135 135
136 void OnWindowSurfaceDetached(Id window_id,
137 const cc::SurfaceSequence& sequence);
138
136 // Sets the input capture to |window| without notifying the server. 139 // Sets the input capture to |window| without notifying the server.
137 void LocalSetCapture(Window* window); 140 void LocalSetCapture(Window* window);
138 // Sets focus to |window| without notifying the server. 141 // Sets focus to |window| without notifying the server.
139 void LocalSetFocus(Window* window); 142 void LocalSetFocus(Window* window);
140 143
141 // Start/stop tracking windows. While tracked, they can be retrieved via 144 // Start/stop tracking windows. While tracked, they can be retrieved via
142 // WindowTreeClient::GetWindowById. 145 // WindowTreeClient::GetWindowById.
143 void AddWindow(Window* window); 146 void AddWindow(Window* window);
144 147
145 bool IsRoot(Window* window) const { return roots_.count(window) > 0; } 148 bool IsRoot(Window* window) const { return roots_.count(window) > 0; }
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 mojo::Array<uint8_t> new_data) override; 324 mojo::Array<uint8_t> new_data) override;
322 void OnWindowInputEvent(uint32_t event_id, 325 void OnWindowInputEvent(uint32_t event_id,
323 Id window_id, 326 Id window_id,
324 std::unique_ptr<ui::Event> event, 327 std::unique_ptr<ui::Event> event,
325 bool matches_pointer_watcher) override; 328 bool matches_pointer_watcher) override;
326 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, 329 void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
327 uint32_t window_id) override; 330 uint32_t window_id) override;
328 void OnWindowFocused(Id focused_window_id) override; 331 void OnWindowFocused(Id focused_window_id) override;
329 void OnWindowPredefinedCursorChanged(Id window_id, 332 void OnWindowPredefinedCursorChanged(Id window_id,
330 mojom::Cursor cursor) override; 333 mojom::Cursor cursor) override;
334 void OnWindowSurfaceChanged(Id window_id,
335 const cc::SurfaceId& surface_id,
336 const cc::SurfaceSequence& surface_sequence,
337 const gfx::Size& frame_size,
338 float device_scale_factor) override;
331 void OnDragDropStart( 339 void OnDragDropStart(
332 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) override; 340 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) override;
333 void OnDragEnter(Id window_id, 341 void OnDragEnter(Id window_id,
334 uint32_t event_flags, 342 uint32_t event_flags,
335 const gfx::Point& position, 343 const gfx::Point& position,
336 uint32_t effect_bitmask, 344 uint32_t effect_bitmask,
337 const OnDragEnterCallback& callback) override; 345 const OnDragEnterCallback& callback) override;
338 void OnDragOver(Id window_id, 346 void OnDragOver(Id window_id,
339 uint32_t event_flags, 347 uint32_t event_flags,
340 const gfx::Point& position, 348 const gfx::Point& position,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 std::set<Id> drag_entered_windows_; 486 std::set<Id> drag_entered_windows_;
479 487
480 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 488 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
481 489
482 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 490 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
483 }; 491 };
484 492
485 } // namespace ui 493 } // namespace ui
486 494
487 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 495 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_private.h ('k') | services/ui/public/cpp/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698