phone_hub_content_view.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2020 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 ASH_SYSTEM_PHONEHUB_PHONE_HUB_CONTENT_VIEW_H_
  5. #define ASH_SYSTEM_PHONEHUB_PHONE_HUB_CONTENT_VIEW_H_
  6. #include "ash/ash_export.h"
  7. #include "ash/system/phonehub/phone_hub_metrics.h"
  8. #include "ui/views/view.h"
  9. namespace ash {
  10. // A base class for Phone Hub content views.
  11. class ASH_EXPORT PhoneHubContentView : public views::View {
  12. public:
  13. ~PhoneHubContentView() override;
  14. // Called upon bubble closing, subclasses can install their own handlers here
  15. // if needed for when the the bubble is dismissed.
  16. virtual void OnBubbleClose();
  17. // Returns the screen to be logged for metrics.
  18. virtual phone_hub_metrics::Screen GetScreenForMetrics() const;
  19. protected:
  20. PhoneHubContentView();
  21. void LogInterstitialScreenEvent(
  22. phone_hub_metrics::InterstitialScreenEvent event);
  23. };
  24. } // namespace ash
  25. #endif // ASH_SYSTEM_PHONEHUB_PHONE_HUB_CONTENT_VIEW_H_