summaryrefslogtreecommitdiff
path: root/chromium/ui/aura/mus/window_mus.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-09-18 14:34:04 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-10-04 11:15:27 +0000
commite6430e577f105ad8813c92e75c54660c4985026e (patch)
tree88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/ui/aura/mus/window_mus.h
parent53d399fe6415a96ea6986ec0d402a9c07da72453 (diff)
downloadqtwebengine-chromium-e6430e577f105ad8813c92e75c54660c4985026e.tar.gz
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/ui/aura/mus/window_mus.h')
-rw-r--r--chromium/ui/aura/mus/window_mus.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/chromium/ui/aura/mus/window_mus.h b/chromium/ui/aura/mus/window_mus.h
index af7692ced58..acf13fd17aa 100644
--- a/chromium/ui/aura/mus/window_mus.h
+++ b/chromium/ui/aura/mus/window_mus.h
@@ -20,6 +20,7 @@ class SurfaceInfo;
namespace gfx {
class Rect;
+class Transform;
}
namespace ui {
@@ -78,18 +79,18 @@ class AURA_EXPORT WindowMus {
ui::mojom::OrderDirection) = 0;
virtual void SetBoundsFromServer(
const gfx::Rect& bounds,
- const base::Optional<cc::LocalSurfaceId>& local_surface_id) = 0;
+ const base::Optional<viz::LocalSurfaceId>& local_surface_id) = 0;
+ virtual void SetTransformFromServer(const gfx::Transform& transform) = 0;
virtual void SetVisibleFromServer(bool visible) = 0;
virtual void SetOpacityFromServer(float opacity) = 0;
virtual void SetCursorFromServer(const ui::CursorData& cursor) = 0;
virtual void SetPropertyFromServer(const std::string& property_name,
const std::vector<uint8_t>* data) = 0;
virtual void SetFrameSinkIdFromServer(
- const cc::FrameSinkId& frame_sink_id) = 0;
- virtual const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
+ const viz::FrameSinkId& frame_sink_id) = 0;
+ virtual const viz::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
const gfx::Size& new_size) = 0;
- virtual void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) = 0;
- virtual void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) = 0;
+ virtual void SetFallbackSurfaceInfo(const viz::SurfaceInfo& surface_info) = 0;
// The window was deleted on the server side. DestroyFromServer() should
// result in deleting |this|.
virtual void DestroyFromServer() = 0;
@@ -99,10 +100,10 @@ class AURA_EXPORT WindowMus {
virtual ChangeSource OnTransientChildAdded(WindowMus* child) = 0;
virtual ChangeSource OnTransientChildRemoved(WindowMus* child) = 0;
- // Returns the currently used cc::LocalSurfaceId to embed this Window. Local
+ // Returns the currently used viz::LocalSurfaceId to embed this Window. Local
// windows or windows that have not been embedded yet will have an invalid
- // cc::LocalSurfaceId.
- virtual const cc::LocalSurfaceId& GetLocalSurfaceId() = 0;
+ // viz::LocalSurfaceId.
+ virtual const viz::LocalSurfaceId& GetLocalSurfaceId() = 0;
// Called in the rare case when WindowTreeClient needs to change state and
// can't go through one of the SetFooFromServer() functions above. Generally
@@ -126,6 +127,8 @@ class AURA_EXPORT WindowMus {
virtual void NotifyEmbeddedAppDisconnected() = 0;
+ virtual bool HasLocalLayerTreeFrameSink() = 0;
+
private:
// Just for set_server_id(), which other places should not call.
friend class WindowTreeClient;