camera_roll_menu_model.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2021 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_CAMERA_ROLL_MENU_MODEL_H_
  5. #define ASH_SYSTEM_PHONEHUB_CAMERA_ROLL_MENU_MODEL_H_
  6. #include "ash/ash_export.h"
  7. #include "ui/base/models/simple_menu_model.h"
  8. namespace ash {
  9. class ASH_EXPORT CameraRollMenuModel : public ui::SimpleMenuModel,
  10. public ui::SimpleMenuModel::Delegate {
  11. public:
  12. explicit CameraRollMenuModel(const base::RepeatingClosure download_callback);
  13. ~CameraRollMenuModel() override;
  14. CameraRollMenuModel(const CameraRollMenuModel&) = delete;
  15. CameraRollMenuModel& operator=(const CameraRollMenuModel&) = delete;
  16. enum CommandID {
  17. COMMAND_DOWNLOAD,
  18. };
  19. // ui::SimpleMenuModel::Delegate:
  20. void ExecuteCommand(int command_id, int event_flags) override;
  21. private:
  22. const base::RepeatingClosure download_callback_;
  23. };
  24. } // namespace ash
  25. #endif // ASH_SYSTEM_PHONEHUB_CAMERA_ROLL_MENU_MODEL_H_