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

Side by Side Diff: ui/aura/test/env_test_helper.h

Issue 2657283003: mash: make Env::last_mouse_location() accurate for Mus (Closed)
Patch Set: merge 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 | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window_event_dispatcher.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef UI_AURA_TEST_ENV_TEST_HELPER_H_ 5 #ifndef UI_AURA_TEST_ENV_TEST_HELPER_H_
6 #define UI_AURA_TEST_ENV_TEST_HELPER_H_ 6 #define UI_AURA_TEST_ENV_TEST_HELPER_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 void SetMode(Env::Mode mode) { env_->mode_ = mode; } 33 void SetMode(Env::Mode mode) { env_->mode_ = mode; }
34 34
35 // This circumvents the DCHECKs in Env::SetWindowTreeClient() and should 35 // This circumvents the DCHECKs in Env::SetWindowTreeClient() and should
36 // only be used for tests where Env is long lived. 36 // only be used for tests where Env is long lived.
37 void SetWindowTreeClient(WindowTreeClient* window_tree_client) { 37 void SetWindowTreeClient(WindowTreeClient* window_tree_client) {
38 env_->window_tree_client_ = window_tree_client; 38 env_->window_tree_client_ = window_tree_client;
39 } 39 }
40 40
41 void SetAlwaysUseLastMouseLocation(bool value) {
42 env_->always_use_last_mouse_location_ = value;
43 }
44
41 private: 45 private:
42 Env* env_; 46 Env* env_;
43 47
44 DISALLOW_COPY_AND_ASSIGN(EnvTestHelper); 48 DISALLOW_COPY_AND_ASSIGN(EnvTestHelper);
45 }; 49 };
46 50
47 } // namespace test 51 } // namespace test
48 } // namespace aura 52 } // namespace aura
49 53
50 #endif // UI_AURA_TEST_ENV_TEST_HELPER_H_ 54 #endif // UI_AURA_TEST_ENV_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698