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

Side by Side Diff: ui/aura/test/mus/window_tree_client_private.cc

Issue 2839743002: Wires up WindowTreeClient::SetDisplayRoot() (Closed)
Patch Set: add .cc Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ui/aura/test/mus/window_tree_client_private.h" 5 #include "ui/aura/test/mus/window_tree_client_private.h"
6 6
7 #include "ui/aura/mus/window_port_mus.h" 7 #include "ui/aura/mus/window_port_mus.h"
8 #include "ui/aura/mus/window_tree_client.h" 8 #include "ui/aura/mus/window_tree_client.h"
9 #include "ui/aura/mus/window_tree_host_mus_init_params.h"
9 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
10 #include "ui/display/display.h" 11 #include "ui/display/display.h"
11 12
12 namespace aura { 13 namespace aura {
13 14
14 WindowTreeClientPrivate::WindowTreeClientPrivate( 15 WindowTreeClientPrivate::WindowTreeClientPrivate(
15 WindowTreeClient* tree_client_impl) 16 WindowTreeClient* tree_client_impl)
16 : tree_client_impl_(tree_client_impl) {} 17 : tree_client_impl_(tree_client_impl) {}
17 18
18 WindowTreeClientPrivate::WindowTreeClientPrivate(Window* window) 19 WindowTreeClientPrivate::WindowTreeClientPrivate(Window* window)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 tree_client_impl_->OnCaptureChanged( 80 tree_client_impl_->OnCaptureChanged(
80 new_capture ? WindowPortMus::Get(new_capture)->server_id() : 0, 81 new_capture ? WindowPortMus::Get(new_capture)->server_id() : 0,
81 old_capture ? WindowPortMus::Get(old_capture)->server_id() : 0); 82 old_capture ? WindowPortMus::Get(old_capture)->server_id() : 0);
82 } 83 }
83 84
84 void WindowTreeClientPrivate::CallOnConnect() { 85 void WindowTreeClientPrivate::CallOnConnect() {
85 const ClientSpecificId client_id = 1; 86 const ClientSpecificId client_id = 1;
86 tree_client_impl_->OnConnect(client_id); 87 tree_client_impl_->OnConnect(client_id);
87 } 88 }
88 89
90 WindowTreeHostMusInitParams
91 WindowTreeClientPrivate::CallCreateInitParamsForNewDisplay() {
92 return tree_client_impl_->CreateInitParamsForNewDisplay();
93 }
94
89 void WindowTreeClientPrivate::SetTreeAndClientId( 95 void WindowTreeClientPrivate::SetTreeAndClientId(
90 ui::mojom::WindowTree* window_tree, 96 ui::mojom::WindowTree* window_tree,
91 ClientSpecificId client_id) { 97 ClientSpecificId client_id) {
92 tree_client_impl_->WindowTreeConnectionEstablished(window_tree); 98 tree_client_impl_->WindowTreeConnectionEstablished(window_tree);
93 tree_client_impl_->client_id_ = client_id; 99 tree_client_impl_->client_id_ = client_id;
94 } 100 }
95 101
96 bool WindowTreeClientPrivate::HasPointerWatcher() { 102 bool WindowTreeClientPrivate::HasPointerWatcher() {
97 return tree_client_impl_->has_pointer_watcher_; 103 return tree_client_impl_->has_pointer_watcher_;
98 } 104 }
99 105
100 Window* WindowTreeClientPrivate::GetWindowByServerId(Id id) { 106 Window* WindowTreeClientPrivate::GetWindowByServerId(Id id) {
101 WindowMus* window = tree_client_impl_->GetWindowByServerId(id); 107 WindowMus* window = tree_client_impl_->GetWindowByServerId(id);
102 return window ? window->GetWindow() : nullptr; 108 return window ? window->GetWindow() : nullptr;
103 } 109 }
104 110
105 } // namespace aura 111 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698