| Index: chrome/browser/ui/screen_capture_confirmation_ui_infobar.h
|
| diff --git a/chrome/browser/ui/screen_capture_confirmation_ui_infobar.h b/chrome/browser/ui/screen_capture_confirmation_ui_infobar.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d2b20877ec1186620f4f38d30f31958e98277f7e
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/screen_capture_confirmation_ui_infobar.h
|
| @@ -0,0 +1,42 @@
|
| +// 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_CONFIRMATION_UI_INFOBAR_H_
|
| +#define CHROME_BROWSER_UI_SCREEN_CAPTURE_CONFIRMATION_UI_INFOBAR_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "chrome/browser/ui/screen_capture_confirmation_ui.h"
|
| +#include "chrome/browser/ui/screen_capture_infobar_delegate.h"
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +// Implements ScreenCaptureConfirmationUI using infobar.
|
| +//
|
| +// TODO(sergeyu): Replace this class with a confirmation prompt that doesn't use
|
| +// infobars.
|
| +class ScreenCaptureConfirmationUIInfobar
|
| + : public ScreenCaptureConfirmationUI {
|
| + public:
|
| + explicit ScreenCaptureConfirmationUIInfobar(
|
| + content::WebContents* web_contents);
|
| + virtual ~ScreenCaptureConfirmationUIInfobar();
|
| +
|
| + // ScreenCaptureConfirmationUI interface.
|
| + virtual bool Show(const ResultCallback& result_callback,
|
| + const string16& application_name) OVERRIDE;
|
| +
|
| + // Called by ScreenCaptureInfoBarDelegate.
|
| + void OnInfobarResult(bool allow);
|
| +
|
| + private:
|
| + ResultCallback result_callback_;
|
| + InfoBarService* infobar_service_;
|
| + ScreenCaptureInfoBarDelegate* delegate_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ScreenCaptureConfirmationUIInfobar);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_CONFIRMATION_UI_INFOBAR_H_
|
|
|