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

Unified Diff: components/mus/ws/window_tree_host_impl.cc

Issue 1615023004: Start of display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash and add back getting constants Created 4 years, 11 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 | « components/mus/ws/window_tree_host_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_host_impl.cc
diff --git a/components/mus/ws/window_tree_host_impl.cc b/components/mus/ws/window_tree_host_impl.cc
index ef92138123e19ddf399a9b0ba0d6972a8551e4c7..8aa8f6a2cf3588f151f04448b4e7207fcd933655 100644
--- a/components/mus/ws/window_tree_host_impl.cc
+++ b/components/mus/ws/window_tree_host_impl.cc
@@ -51,6 +51,8 @@ mojom::EventPtr CoalesceEvents(mojom::EventPtr first, mojom::EventPtr second) {
return second;
}
+uint32_t next_id = 1;
+
} // namespace
class WindowTreeHostImpl::ProcessedEventTarget {
@@ -98,7 +100,8 @@ WindowTreeHostImpl::WindowTreeHostImpl(
DisplayManager::Create(app_impl, gpu_state, surfaces_state)),
window_manager_(std::move(window_manager)),
tree_awaiting_input_ack_(nullptr),
- last_cursor_(0) {
+ last_cursor_(0),
+ id_(next_id) {
display_manager_->Init(this);
if (client_) {
client_.set_connection_error_handler(base::Bind(
@@ -155,6 +158,10 @@ const mojom::ViewportMetrics& WindowTreeHostImpl::GetViewportMetrics() const {
return display_manager_->GetViewportMetrics();
}
+mojom::Rotation WindowTreeHostImpl::GetRotation() const {
+ return display_manager_->GetRotation();
+}
+
void WindowTreeHostImpl::SetFocusedWindow(ServerWindow* new_focused_window) {
ServerWindow* old_focused_window = focus_controller_->GetFocusedWindow();
if (old_focused_window == new_focused_window)
« no previous file with comments | « components/mus/ws/window_tree_host_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698