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

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

Issue 2225833003: Fixes a couple of bugs in NativeWidgetMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 4 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 | « no previous file | ui/views/mus/native_widget_mus.cc » ('j') | ui/views/mus/native_widget_mus.cc » ('J')
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 2e50183eeb6e711085c4807a1523a922a807da34..2bd29b5c1d28ff4683736e66db6f849685a9c803 100644
--- a/ui/views/mus/native_widget_mus.h
+++ b/ui/views/mus/native_widget_mus.h
@@ -232,6 +232,12 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
return window_tree_host();
}
+ // Returns true if this NativeWidgetMus exists on the window manager side
+ // to provide the frame decorations.
+ bool is_parallel_widget_in_window_manager() {
+ return is_parallel_widget_in_window_manager_;
+ }
+
void set_last_cursor(ui::mojom::Cursor cursor) { last_cursor_ = cursor; }
void SetShowState(ui::mojom::ShowState show_state);
@@ -248,7 +254,7 @@ class VIEWS_MUS_EXPORT NativeWidgetMus
internal::NativeWidgetDelegate* native_widget_delegate_;
- const ui::mojom::SurfaceType surface_type_;
+ const bool is_parallel_widget_in_window_manager_;
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 | « no previous file | ui/views/mus/native_widget_mus.cc » ('j') | ui/views/mus/native_widget_mus.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698