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

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. |title| specifies the
26 // title of the application that requested screen capture. Returns false if
27 // the prompt cannot be shown for any reason (|result_callback| is ignored in
28 // that case).
29 virtual bool Show(const ResultCallback& result_callback,
30 const string16& title) = 0;
Greg Spencer (Chromium) 2013/03/21 21:44:24 Maybe use "application_name" instead of title? If
Sergey Ulanov 2013/03/21 22:53:05 Done.
31 };
32
33 #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_CONFIRMATION_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/screen_capture_confirmation_ui_infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698