| 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) {}
|
|
|