Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: chrome/browser/ui/screen_capture_confirmation_ui.h

Issue 12843009: Replace screen capture confirmation infobar with a message box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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
5 #ifndef CHROME_BROWSER_UI_SCREEN_CAPTURE_CONFIRMATION_UI_H_
6 #define CHROME_BROWSER_UI_SCREEN_CAPTURE_CONFIRMATION_UI_H_
7
8 #include "base/callback.h"
9 #include "base/string16.h"
10
11 // Interface for screen capture confirmation UI to get user consent before
12 // starting screen capturing.
13 class ScreenCaptureConfirmationUI {
14 public:
15 enum Result {
16 ALLOW,
17 DENY,
18 };
19
20 typedef base::Callback<void(Result result)> ResultCallback;
21
22 virtual ~ScreenCaptureConfirmationUI() {}
23
24 // Shows the screen capture confirmation prompt. |result_callback| will be
25 // invoked when the user chooses to stop capturing. |application_name|
26 // specifies the name of the application that requested screen capture.
27 // Returns false if the prompt cannot be shown for any reason
28 // (|result_callback| is ignored in that case).
29 virtual bool Show(const ResultCallback& result_callback,
30 const string16& application_name) = 0;
31 };
32
33 #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_CONFIRMATION_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698