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

Side by Side Diff: components/mus/ws/test_utils.h

Issue 1818333002: Reland: mus: Enable system modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up comments Created 4 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 #ifndef COMPONENTS_MUS_WS_TEST_UTILS_H_ 5 #ifndef COMPONENTS_MUS_WS_TEST_UTILS_H_
6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_ 6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // ----------------------------------------------------------------------------- 100 // -----------------------------------------------------------------------------
101 101
102 class EventDispatcherTestApi { 102 class EventDispatcherTestApi {
103 public: 103 public:
104 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {} 104 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {}
105 ~EventDispatcherTestApi() {} 105 ~EventDispatcherTestApi() {}
106 106
107 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); } 107 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); }
108 bool is_mouse_button_down() const { return ed_->mouse_button_down_; } 108 bool is_mouse_button_down() const { return ed_->mouse_button_down_; }
109 bool IsObservingWindow(ServerWindow* window) { 109 bool IsWindowPointerTarget(const ServerWindow* window) const;
110 return ed_->IsObservingWindow(window);
111 }
112 int NumberPointerTargetsForWindow(ServerWindow* window); 110 int NumberPointerTargetsForWindow(ServerWindow* window);
113 111
114 private: 112 private:
115 EventDispatcher* ed_; 113 EventDispatcher* ed_;
116 114
117 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi); 115 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi);
118 }; 116 };
119 117
120 // ----------------------------------------------------------------------------- 118 // -----------------------------------------------------------------------------
121 119
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 399
402 // Creates a new visible window as a child of the single root of |tree|. 400 // Creates a new visible window as a child of the single root of |tree|.
403 // |client_id| set to the ClientWindowId of the new window. 401 // |client_id| set to the ClientWindowId of the new window.
404 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 402 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
405 403
406 } // namespace test 404 } // namespace test
407 } // namespace ws 405 } // namespace ws
408 } // namespace mus 406 } // namespace mus
409 407
410 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ 408 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698