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

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

Issue 2478383002: Remove SurfaceSequence from mus client code. (Closed)
Patch Set: Only cleanup. Created 4 years, 1 month 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.cc ('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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 AttachCompositorFrameSink( 131 void AttachCompositorFrameSink(
132 Id window_id, 132 Id window_id,
133 mojom::CompositorFrameSinkType type, 133 mojom::CompositorFrameSinkType type,
134 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, 134 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink,
135 cc::mojom::MojoCompositorFrameSinkClientPtr client); 135 cc::mojom::MojoCompositorFrameSinkClientPtr client);
136 136
137 void OnWindowSurfaceDetached(Id window_id,
138 const cc::SurfaceSequence& sequence);
139
140 // Sets the input capture to |window| without notifying the server. 137 // Sets the input capture to |window| without notifying the server.
141 void LocalSetCapture(Window* window); 138 void LocalSetCapture(Window* window);
142 // Sets focus to |window| without notifying the server. 139 // Sets focus to |window| without notifying the server.
143 void LocalSetFocus(Window* window); 140 void LocalSetFocus(Window* window);
144 141
145 // Start/stop tracking windows. While tracked, they can be retrieved via 142 // Start/stop tracking windows. While tracked, they can be retrieved via
146 // WindowTreeClient::GetWindowById. 143 // WindowTreeClient::GetWindowById.
147 void AddWindow(Window* window); 144 void AddWindow(Window* window);
148 145
149 bool IsRoot(Window* window) const { return roots_.count(window) > 0; } 146 bool IsRoot(Window* window) const { return roots_.count(window) > 0; }
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 Id window_id, 324 Id window_id,
328 std::unique_ptr<ui::Event> event, 325 std::unique_ptr<ui::Event> event,
329 bool matches_pointer_watcher) override; 326 bool matches_pointer_watcher) override;
330 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, 327 void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
331 uint32_t window_id) override; 328 uint32_t window_id) override;
332 void OnWindowFocused(Id focused_window_id) override; 329 void OnWindowFocused(Id focused_window_id) override;
333 void OnWindowPredefinedCursorChanged(Id window_id, 330 void OnWindowPredefinedCursorChanged(Id window_id,
334 mojom::Cursor cursor) override; 331 mojom::Cursor cursor) override;
335 void OnWindowSurfaceChanged(Id window_id, 332 void OnWindowSurfaceChanged(Id window_id,
336 const cc::SurfaceId& surface_id, 333 const cc::SurfaceId& surface_id,
337 const cc::SurfaceSequence& surface_sequence,
338 const gfx::Size& frame_size, 334 const gfx::Size& frame_size,
339 float device_scale_factor) override; 335 float device_scale_factor) override;
340 void OnDragDropStart( 336 void OnDragDropStart(
341 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) override; 337 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) override;
342 void OnDragEnter(Id window_id, 338 void OnDragEnter(Id window_id,
343 uint32_t event_flags, 339 uint32_t event_flags,
344 const gfx::Point& position, 340 const gfx::Point& position,
345 uint32_t effect_bitmask, 341 uint32_t effect_bitmask,
346 const OnDragEnterCallback& callback) override; 342 const OnDragEnterCallback& callback) override;
347 void OnDragOver(Id window_id, 343 void OnDragOver(Id window_id,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 std::set<Id> drag_entered_windows_; 484 std::set<Id> drag_entered_windows_;
489 485
490 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 486 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
491 487
492 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 488 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
493 }; 489 };
494 490
495 } // namespace ui 491 } // namespace ui
496 492
497 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ 493 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698