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

Unified Diff: chrome/browser/ui/extensions/app_launch_params.h

Issue 635233008: Make management.launchApp() work for hosted apps on Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webstore_dialogs_athena
Patch Set: Created 6 years, 2 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: chrome/browser/ui/extensions/app_launch_params.h
diff --git a/chrome/browser/ui/extensions/application_launch.h b/chrome/browser/ui/extensions/app_launch_params.h
similarity index 64%
copy from chrome/browser/ui/extensions/application_launch.h
copy to chrome/browser/ui/extensions/app_launch_params.h
index 5f07ae0c5ae7391cb07da7c1548b950434d2599e..b9298f9e78b24c50551a5a346d8991eab7403850 100644
--- a/chrome/browser/ui/extensions/application_launch.h
+++ b/chrome/browser/ui/extensions/app_launch_params.h
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
-#define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
+#ifndef CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_
+#define CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_
+
+#include <string>
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -13,17 +15,8 @@
#include "ui/gfx/rect.h"
#include "url/gurl.h"
-class Browser;
class Profile;
-namespace base {
-class CommandLine;
-}
-
-namespace content {
-class WebContents;
-}
-
namespace extensions {
class Extension;
}
@@ -82,28 +75,4 @@ struct AppLaunchParams {
base::FilePath current_directory;
};
-// Opens the application, possibly prompting the user to re-enable it.
-void OpenApplicationWithReenablePrompt(const AppLaunchParams& params);
-
-// Open the application in a way specified by |params|.
-content::WebContents* OpenApplication(const AppLaunchParams& params);
-
-// Open |url| in an app shortcut window.
-// There are two kinds of app shortcuts: Shortcuts to a URL,
-// and shortcuts that open an installed application. This function
-// is used to open the former. To open the latter, use
-// application_launch::OpenApplication().
-content::WebContents* OpenAppShortcutWindow(Profile* profile,
- const GURL& url);
-
-// Whether the extension can be launched by sending a
-// chrome.app.runtime.onLaunched event.
-bool CanLaunchViaEvent(const extensions::Extension* extension);
-
-// Get the launch URL for a given extension, with optional override/fallback.
-// |override_url|, if non-empty, will be preferred over the extension's
-// launch url.
-GURL UrlForExtension(const extensions::Extension* extension,
- const GURL& override_url);
-
-#endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
+#endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698