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

Unified Diff: ui/views/mus/native_widget_mus.h

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/window_tree_unittest.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.h
diff --git a/ui/views/mus/native_widget_mus.h b/ui/views/mus/native_widget_mus.h
index dc4c8102075fb10ad3e04cd8cfd0dc99aea0aa8e..f8d0098e4b50011c8ade91a20676a740ec0f0ef9 100644
--- a/ui/views/mus/native_widget_mus.h
+++ b/ui/views/mus/native_widget_mus.h
@@ -76,9 +76,10 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
public aura::client::DragDropDelegate,
public NON_EXPORTED_BASE(ui::InputEventHandler) {
public:
- NativeWidgetMus(internal::NativeWidgetDelegate* delegate,
- ui::Window* window,
- ui::mojom::SurfaceType surface_type);
+ NativeWidgetMus(
+ internal::NativeWidgetDelegate* delegate,
+ ui::Window* window,
+ ui::mojom::CompositorFrameSinkType compositor_frame_sink_type);
~NativeWidgetMus() override;
// Configures the set of properties supplied to the window manager when
@@ -96,7 +97,9 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
// Returns the widget for a ui::Window, or null if there is none.
static Widget* GetWidgetForWindow(ui::Window* window);
- ui::mojom::SurfaceType surface_type() const { return surface_type_; }
+ ui::mojom::CompositorFrameSinkType compositor_frame_sink_type() const {
+ return compositor_frame_sink_type_;
+ }
ui::Window* window() { return window_; }
WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); }
@@ -254,7 +257,8 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
// Returns true if this NativeWidgetMus exists on the window manager side
// to provide the frame decorations.
bool is_parallel_widget_in_window_manager() {
- return surface_type_ == ui::mojom::SurfaceType::UNDERLAY;
+ return compositor_frame_sink_type_ ==
+ ui::mojom::CompositorFrameSinkType::UNDERLAY;
}
void set_last_cursor(ui::mojom::Cursor cursor) { last_cursor_ = cursor; }
@@ -273,7 +277,7 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
internal::NativeWidgetDelegate* native_widget_delegate_;
- const ui::mojom::SurfaceType surface_type_;
+ const ui::mojom::CompositorFrameSinkType compositor_frame_sink_type_;
ui::mojom::ShowState show_state_before_fullscreen_;
// See class documentation for Widget in widget.h for a note about ownership.
« no previous file with comments | « services/ui/ws/window_tree_unittest.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698