blob: 0483e120906b70750d8128a9da430eb0b0c73f3c [file] [log] [blame]
// Copyright 2013 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_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_
#define CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_
#include "base/callback.h"
#include "base/macros.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
#include "content/public/common/media_stream_request.h"
// Interface for screen capture notification UI shown when content of the screen
// is being captured.
class ScreenCaptureNotificationUI : public content::MediaStreamUI {
public:
ScreenCaptureNotificationUI() = default;
~ScreenCaptureNotificationUI() override = default;
// Creates platform-specific screen capture notification UI. |text| specifies
// the text that should be shown in the notification.
static std::unique_ptr<ScreenCaptureNotificationUI> Create(
const base::string16& text);
private:
#if defined(OS_MACOSX)
// Returns a ScreenCaptureNotificationUI or nullptr if the Views version
// should be used instead.
static std::unique_ptr<ScreenCaptureNotificationUI> CreateCocoa(
const base::string16& text);
#endif
DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUI);
};
#endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_