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

Unified Diff: content/public/browser/content_browser_client.h

Issue 9683003: Aura: Show dialog box asking user's permisssion for screen sharing for gtalk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 1441efdfbe8d76b3a789b729b70d05a3d49b259e..e85e4b1f57dfcedf9d06bd9cb1b1986cda5f92b5 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -77,6 +77,8 @@ struct ShowDesktopNotificationHostMsgParams;
typedef base::Callback< void(const content::MediaStreamDevices&) >
MediaResponseCallback;
+typedef base::Callback< void(const bool&) > YesNoBoxResponseCallback;
+
// Embedder API (or SPI) for participating in browser logic, to be implemented
// by the client of the content browser. See ChromeContentBrowserClient for the
// principal implementation. The methods are assumed to be called on the UI
@@ -405,6 +407,12 @@ class ContentBrowserClient {
crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
const GURL& url) = 0;
#endif
+
+ // Shows a yes/no box to ask for the user's permission with the specified
+ // message and title. The user's response is sent via |callback|.
+ virtual void ShowYesNoBox(const string16& title,
Avi (use Gerrit) 2012/03/12 14:45:30 I'm not that familiar with ppapi; how much UI does
+ const string16& message,
+ YesNoBoxResponseCallback* callback) {}
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698