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

Unified Diff: extensions/browser/app_window/app_window_client.h

Issue 2934513003: Changes in app.window and app.runtime to support lock screen note taking (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « extensions/browser/app_window/app_window.cc ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/app_window/app_window_client.h
diff --git a/extensions/browser/app_window/app_window_client.h b/extensions/browser/app_window/app_window_client.h
index f026d809760ca1319a584e1bd4fabb56adbbbb2c..98a09d8ed0b914bedaf181b405038f1573d1cff1 100644
--- a/extensions/browser/app_window/app_window_client.h
+++ b/extensions/browser/app_window/app_window_client.h
@@ -7,6 +7,7 @@
#include "base/callback_forward.h"
#include "extensions/browser/app_window/app_window.h"
+#include "extensions/common/api/app_runtime.h"
namespace content {
class BrowserContext;
@@ -30,6 +31,15 @@ class AppWindowClient {
virtual AppWindow* CreateAppWindow(content::BrowserContext* context,
const Extension* extension) = 0;
+ // Creates a new AppWindow for |extension| as lock screen action handler for
+ // |action|. This should be used to create windows that will be used to handle
+ // |action| on lock screen. The method should return null window if the app
+ // was not requested to handle the action.
+ virtual AppWindow* CreateAppWindowForLockScreenAction(
+ content::BrowserContext* context,
+ const Extension* extension,
+ api::app_runtime::ActionType action) = 0;
+
// Creates a new extensions::NativeAppWindow for |window|.
virtual NativeAppWindow* CreateNativeAppWindow(
AppWindow* window,
« no previous file with comments | « extensions/browser/app_window/app_window.cc ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698