workspace_extension_delegate.h 865 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_PLATFORM_WINDOW_EXTENSIONS_WORKSPACE_EXTENSION_DELEGATE_H_
  5. #define UI_PLATFORM_WINDOW_EXTENSIONS_WORKSPACE_EXTENSION_DELEGATE_H_
  6. #include "base/component_export.h"
  7. namespace ui {
  8. // Notifies the delegate about changed workspace. The delegate must be set in
  9. // WorkspaceExtension to be able to receive these changes.
  10. class COMPONENT_EXPORT(PLATFORM_WINDOW) WorkspaceExtensionDelegate {
  11. public:
  12. // Notifies the delegate if the window has changed the workspace it is
  13. // located in.
  14. virtual void OnWorkspaceChanged() = 0;
  15. protected:
  16. virtual ~WorkspaceExtensionDelegate() = default;
  17. };
  18. } // namespace ui
  19. #endif // UI_PLATFORM_WINDOW_EXTENSIONS_WORKSPACE_EXTENSION_DELEGATE_H_