Index: components/mus/ws/focus_controller_delegate.h |
diff --git a/components/mus/ws/focus_controller_observer.h b/components/mus/ws/focus_controller_delegate.h |
similarity index 59% |
copy from components/mus/ws/focus_controller_observer.h |
copy to components/mus/ws/focus_controller_delegate.h |
index 015a51e7b99fa1da7bc2fee8408819d700d9f1ea..6eca41cabbbed54e53cda97278ca109a16ae50a7 100644 |
--- a/components/mus/ws/focus_controller_observer.h |
+++ b/components/mus/ws/focus_controller_delegate.h |
@@ -6,22 +6,21 @@ |
#define COMPONENTS_MUS_WS_FOCUS_CONTROLLER_DELEGATE_H_ |
namespace mus { |
+ |
namespace ws { |
-enum class FocusControllerChangeSource; |
class ServerWindow; |
-class FocusControllerObserver { |
+class FocusControllerDelegate { |
public: |
- virtual void OnFocusChanged(FocusControllerChangeSource change_source, |
- ServerWindow* old_focused_window, |
- ServerWindow* new_focused_window) = 0; |
+ virtual bool CanHaveActiveChildren(ServerWindow* window) const = 0; |
protected: |
- ~FocusControllerObserver() {} |
+ ~FocusControllerDelegate() {} |
}; |
} // namespace ws |
+ |
} // namespace mus |
#endif // COMPONENTS_MUS_WS_FOCUS_CONTROLLER_DELEGATE_H_ |