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

Unified Diff: chrome/browser/extensions/api/app_window/app_window_api.h

Issue 166443004: Add frame color option to packaged app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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/extensions/api/app_window/app_window_api.h
diff --git a/chrome/browser/extensions/api/app_window/app_window_api.h b/chrome/browser/extensions/api/app_window/app_window_api.h
index 8aaac5446bb94538541a6947a60426be2cc18152..28c358553623b48078944771ffcedb545c6393eb 100644
--- a/chrome/browser/extensions/api/app_window/app_window_api.h
+++ b/chrome/browser/extensions/api/app_window/app_window_api.h
@@ -5,12 +5,20 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_
+#include "apps/app_window.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
namespace extensions {
+namespace api {
+namespace app_window {
+struct CreateWindowOptions;
+}
+}
+
class AppWindowCreateFunction : public ChromeAsyncExtensionFunction {
public:
+ AppWindowCreateFunction();
DECLARE_EXTENSION_FUNCTION("app.window.create", APP_WINDOW_CREATE)
void SendDelayedResponse();
@@ -18,6 +26,16 @@ class AppWindowCreateFunction : public ChromeAsyncExtensionFunction {
protected:
virtual ~AppWindowCreateFunction() {}
virtual bool RunImpl() OVERRIDE;
+
+ private:
+ bool inject_html_titlebar_;
+
+ apps::AppWindow::Frame GetFrameFromString(const std::string& frame_string);
+ bool GetFrameOptions(
+ const extensions::api::app_window::CreateWindowOptions& options,
+ apps::AppWindow::CreateParams* create_params);
+ void UpdateFrameOptionsForChannel(
+ apps::AppWindow::CreateParams* create_params);
};
} // namespace extensions
« no previous file with comments | « chrome/browser/apps/app_window_browsertest.cc ('k') | chrome/browser/extensions/api/app_window/app_window_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698