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

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

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Added TODO 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
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_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void LocalSetClientArea( 302 void LocalSetClientArea(
303 const gfx::Insets& new_client_area, 303 const gfx::Insets& new_client_area,
304 const std::vector<gfx::Rect>& additional_client_areas); 304 const std::vector<gfx::Rect>& additional_client_areas);
305 void LocalSetParentDrawn(bool drawn); 305 void LocalSetParentDrawn(bool drawn);
306 void LocalSetDisplay(int64_t display_id); 306 void LocalSetDisplay(int64_t display_id);
307 void LocalSetVisible(bool visible); 307 void LocalSetVisible(bool visible);
308 void LocalSetOpacity(float opacity); 308 void LocalSetOpacity(float opacity);
309 void LocalSetPredefinedCursor(mojom::Cursor cursor_id); 309 void LocalSetPredefinedCursor(mojom::Cursor cursor_id);
310 void LocalSetSharedProperty(const std::string& name, 310 void LocalSetSharedProperty(const std::string& name,
311 const std::vector<uint8_t>* data); 311 const std::vector<uint8_t>* data);
312 void LocalSetSurfaceId(const cc::SurfaceId& surface_id,
313 const cc::SurfaceSequence& surface_sequence,
314 const gfx::Size& frame_size,
315 float device_scale_factor);
312 316
313 // Notifies this winodw that its stacking position has changed. 317 // Notifies this winodw that its stacking position has changed.
314 void NotifyWindowStackingChanged(); 318 void NotifyWindowStackingChanged();
315 // Methods implementing visibility change notifications. See WindowObserver 319 // Methods implementing visibility change notifications. See WindowObserver
316 // for more details. 320 // for more details.
317 void NotifyWindowVisibilityChanged(Window* target, bool visible); 321 void NotifyWindowVisibilityChanged(Window* target, bool visible);
318 // Notifies this window's observers. Returns false if |this| was deleted 322 // Notifies this window's observers. Returns false if |this| was deleted
319 // during the call (by an observer), otherwise true. 323 // during the call (by an observer), otherwise true.
320 bool NotifyWindowVisibilityChangedAtReceiver(Window* target, bool visible); 324 bool NotifyWindowVisibilityChangedAtReceiver(Window* target, bool visible);
321 // Notifies this window and its child hierarchy. Returns false if |this| was 325 // Notifies this window and its child hierarchy. Returns false if |this| was
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // Key cannot be used for this purpose because it can be char* or 390 // Key cannot be used for this purpose because it can be char* or
387 // WindowProperty<>. 391 // WindowProperty<>.
388 struct Value { 392 struct Value {
389 const char* name; 393 const char* name;
390 int64_t value; 394 int64_t value;
391 PropertyDeallocator deallocator; 395 PropertyDeallocator deallocator;
392 }; 396 };
393 397
394 std::map<const void*, Value> prop_map_; 398 std::map<const void*, Value> prop_map_;
395 399
400 struct SurfaceInfo {
401 cc::SurfaceId surface_id;
402 cc::SurfaceSequence surface_sequence;
403 gfx::Size frame_size;
404 float device_scale_factor;
405 };
406 SurfaceInfo surface_info_;
407
396 DISALLOW_COPY_AND_ASSIGN(Window); 408 DISALLOW_COPY_AND_ASSIGN(Window);
397 }; 409 };
398 410
399 } // namespace ui 411 } // namespace ui
400 412
401 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 413 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698