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

Unified 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: Rebased after fixing the crash 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index 41db2d0c851f76d76548bc01940b1ac240b741d8..7fdd62dc4c8989adafb361729df0adb6b19a1aeb 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -111,10 +111,11 @@ class EventDispatcherTestApi {
bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); }
bool is_mouse_button_down() const { return ed_->mouse_button_down_; }
- bool IsObservingWindow(ServerWindow* window) {
- return ed_->IsObservingWindow(window);
- }
+ bool IsWindowPointerTarget(const ServerWindow* window) const;
int NumberPointerTargetsForWindow(ServerWindow* window);
+ ModalWindowController* modal_window_controller() const {
+ return &ed_->modal_window_controller_;
+ }
private:
EventDispatcher* ed_;
@@ -124,6 +125,24 @@ class EventDispatcherTestApi {
// -----------------------------------------------------------------------------
+class ModalWindowControllerTestApi {
+ public:
+ explicit ModalWindowControllerTestApi(ModalWindowController* mwc)
+ : mwc_(mwc) {}
+ ~ModalWindowControllerTestApi() {}
+
+ ServerWindow* GetActiveSystemModalWindow() const {
+ return mwc_->GetActiveSystemModalWindow();
+ }
+
+ private:
+ ModalWindowController* mwc_;
+
+ DISALLOW_COPY_AND_ASSIGN(ModalWindowControllerTestApi);
+};
+
+// -----------------------------------------------------------------------------
+
class WindowManagerStateTestApi {
public:
explicit WindowManagerStateTestApi(WindowManagerState* wms) : wms_(wms) {}
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698