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

Side by Side Diff: services/ui/test_wm/test_wm.cc

Issue 2669203002: Revert: Remove WindowTreeClientDelegate::GetCaptureClient() and WindowTreeClient::GetCaptureClient() (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/ws/window_server_test_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 5 #include <memory>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "mojo/public/cpp/bindings/binding.h" 10 #include "mojo/public/cpp/bindings/binding.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void OnEmbedRootDestroyed( 80 void OnEmbedRootDestroyed(
81 aura::WindowTreeHostMus* window_tree_host) override { 81 aura::WindowTreeHostMus* window_tree_host) override {
82 // WindowTreeClients configured as the window manager should never get 82 // WindowTreeClients configured as the window manager should never get
83 // OnEmbedRootDestroyed(). 83 // OnEmbedRootDestroyed().
84 NOTREACHED(); 84 NOTREACHED();
85 } 85 }
86 void OnPointerEventObserved(const ui::PointerEvent& event, 86 void OnPointerEventObserved(const ui::PointerEvent& event,
87 aura::Window* target) override { 87 aura::Window* target) override {
88 // Don't care. 88 // Don't care.
89 } 89 }
90 aura::client::CaptureClient* GetCaptureClient() override {
91 return wm_state_.capture_controller();
92 }
90 aura::PropertyConverter* GetPropertyConverter() override { 93 aura::PropertyConverter* GetPropertyConverter() override {
91 return &property_converter_; 94 return &property_converter_;
92 } 95 }
93 96
94 // aura::WindowManagerDelegate: 97 // aura::WindowManagerDelegate:
95 void SetWindowManagerClient(aura::WindowManagerClient* client) override { 98 void SetWindowManagerClient(aura::WindowManagerClient* client) override {
96 window_manager_client_ = client; 99 window_manager_client_ = client;
97 } 100 }
98 bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) override { 101 bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) override {
99 return true; 102 return true;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 DISALLOW_COPY_AND_ASSIGN(TestWM); 184 DISALLOW_COPY_AND_ASSIGN(TestWM);
182 }; 185 };
183 186
184 } // namespace test 187 } // namespace test
185 } // namespace ui 188 } // namespace ui
186 189
187 MojoResult ServiceMain(MojoHandle service_request_handle) { 190 MojoResult ServiceMain(MojoHandle service_request_handle) {
188 service_manager::ServiceRunner runner(new ui::test::TestWM); 191 service_manager::ServiceRunner runner(new ui::test::TestWM);
189 return runner.Run(service_request_handle); 192 return runner.Run(service_request_handle);
190 } 193 }
OLDNEW
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/ws/window_server_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698