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

Side by Side Diff: ui/aura/mus/window_tree_client.cc

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: WIP Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/mus/window_tree_client.h" 5 #include "ui/aura/mus/window_tree_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 has_pointer_watcher_ = true; 940 has_pointer_watcher_ = true;
941 tree_->StartPointerWatcher(want_moves); 941 tree_->StartPointerWatcher(want_moves);
942 } 942 }
943 943
944 void WindowTreeClient::StopPointerWatcher() { 944 void WindowTreeClient::StopPointerWatcher() {
945 DCHECK(has_pointer_watcher_); 945 DCHECK(has_pointer_watcher_);
946 tree_->StopPointerWatcher(); 946 tree_->StopPointerWatcher();
947 has_pointer_watcher_ = false; 947 has_pointer_watcher_ = false;
948 } 948 }
949 949
950 void WindowTreeClient::GetFrameSinkId(Id window_id) {
951 DCHECK(tree_);
952 tree_->GetFrameSinkId(window_id);
953 }
954
950 void WindowTreeClient::AddObserver(WindowTreeClientObserver* observer) { 955 void WindowTreeClient::AddObserver(WindowTreeClientObserver* observer) {
951 observers_.AddObserver(observer); 956 observers_.AddObserver(observer);
952 } 957 }
953 958
954 void WindowTreeClient::RemoveObserver(WindowTreeClientObserver* observer) { 959 void WindowTreeClient::RemoveObserver(WindowTreeClientObserver* observer) {
955 observers_.RemoveObserver(observer); 960 observers_.RemoveObserver(observer);
956 } 961 }
957 962
958 void WindowTreeClient::AddTestObserver(WindowTreeClientTestObserver* observer) { 963 void WindowTreeClient::AddTestObserver(WindowTreeClientTestObserver* observer) {
959 test_observers_.AddObserver(observer); 964 test_observers_.AddObserver(observer);
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 } 2081 }
2077 2082
2078 void WindowTreeClient::OnCompositingLockStateChanged( 2083 void WindowTreeClient::OnCompositingLockStateChanged(
2079 ui::Compositor* compositor) {} 2084 ui::Compositor* compositor) {}
2080 2085
2081 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { 2086 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) {
2082 compositor->RemoveObserver(this); 2087 compositor->RemoveObserver(this);
2083 } 2088 }
2084 2089
2085 } // namespace aura 2090 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698