blob: ee9bd30fd3101b5ad478dffe21fc76d3e2268c83 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SHARESHEET_EXAMPLE_ACTION_H_
#define CHROME_BROWSER_SHARESHEET_EXAMPLE_ACTION_H_
#include "chrome/browser/sharesheet/share_action.h"
class ExampleAction : public sharesheet::ShareAction {
public:
ExampleAction();
~ExampleAction() override;
ExampleAction(const ExampleAction&) = delete;
ExampleAction& operator=(const ExampleAction&) = delete;
const std::u16string GetActionName() override;
const gfx::VectorIcon& GetActionIcon() override;
void LaunchAction(sharesheet::SharesheetController* controller,
views::View* root_view,
apps::mojom::IntentPtr intent) override;
void OnClosing(sharesheet::SharesheetController* controller) override;
private:
sharesheet::SharesheetController* controller_ = nullptr;
std::string name_;
};
#endif // CHROME_BROWSER_SHARESHEET_EXAMPLE_ACTION_H_