Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / aura / test / aura_test_utils.cc
blobfe4120b4dcddc9a8f25e9d37b54f7dea32bc694f
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
3 // found in the LICENSE file.
5 #include "ui/aura/test/aura_test_utils.h"
7 #include "ui/aura/window_tree_host.h"
9 namespace aura {
10 namespace test {
12 class WindowTreeHostTestApi {
13 public:
14 explicit WindowTreeHostTestApi(WindowTreeHost* host) : host_(host) {}
16 const gfx::Point& last_cursor_request_position_in_host() {
17 return host_->last_cursor_request_position_in_host_;
20 private:
21 WindowTreeHost* host_;
23 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostTestApi);
26 const gfx::Point& QueryLatestMousePositionRequestInHost(WindowTreeHost* host) {
27 WindowTreeHostTestApi host_test_api(host);
28 return host_test_api.last_cursor_request_position_in_host();
31 } // namespace test
32 } // namespace aura