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

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

Issue 1998323002: EventDispatcher shouldn't always cancel on a hierarchy change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 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
« no previous file with comments | « components/mus/ws/server_window_surface_manager_test_api.cc ('k') | no next file » | 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 #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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {} 110 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {}
111 ~EventDispatcherTestApi() {} 111 ~EventDispatcherTestApi() {}
112 112
113 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); } 113 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); }
114 bool is_mouse_button_down() const { return ed_->mouse_button_down_; } 114 bool is_mouse_button_down() const { return ed_->mouse_button_down_; }
115 bool IsWindowPointerTarget(const ServerWindow* window) const; 115 bool IsWindowPointerTarget(const ServerWindow* window) const;
116 int NumberPointerTargetsForWindow(ServerWindow* window); 116 int NumberPointerTargetsForWindow(ServerWindow* window);
117 ModalWindowController* modal_window_controller() const { 117 ModalWindowController* modal_window_controller() const {
118 return &ed_->modal_window_controller_; 118 return &ed_->modal_window_controller_;
119 } 119 }
120 ServerWindow* capture_window() { return ed_->capture_window_; }
120 121
121 private: 122 private:
122 EventDispatcher* ed_; 123 EventDispatcher* ed_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi); 125 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi);
125 }; 126 };
126 127
127 // ----------------------------------------------------------------------------- 128 // -----------------------------------------------------------------------------
128 129
129 class ModalWindowControllerTestApi { 130 class ModalWindowControllerTestApi {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 498
498 // Creates a new visible window as a child of the single root of |tree|. 499 // Creates a new visible window as a child of the single root of |tree|.
499 // |client_id| set to the ClientWindowId of the new window. 500 // |client_id| set to the ClientWindowId of the new window.
500 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 501 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
501 502
502 } // namespace test 503 } // namespace test
503 } // namespace ws 504 } // namespace ws
504 } // namespace mus 505 } // namespace mus
505 506
506 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ 507 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « components/mus/ws/server_window_surface_manager_test_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698