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

Unified Diff: chrome/browser/ui/apps/chrome_apps_client.h

Issue 436503002: Moved CreateNativeAppWindow from AppWindow::Delegate to AppsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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 | « chrome/browser/ui/apps/chrome_app_window_delegate.cc ('k') | chrome/browser/ui/apps/chrome_apps_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/apps/chrome_apps_client.h
diff --git a/chrome/browser/apps/chrome_apps_client.h b/chrome/browser/ui/apps/chrome_apps_client.h
similarity index 62%
rename from chrome/browser/apps/chrome_apps_client.h
rename to chrome/browser/ui/apps/chrome_apps_client.h
index 7e318e853cb9831ff8d7489779001356faacba57..b8d3db0ce88df1b3d449b490cdb1d620b59365cd 100644
--- a/chrome/browser/apps/chrome_apps_client.h
+++ b/chrome/browser/ui/apps/chrome_apps_client.h
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
-#define CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
+#ifndef CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_
+#define CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_
-#include "apps/apps_client.h"
+#include "apps/ui/apps_client.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-template<typename T> struct DefaultSingletonTraits;
+template <typename T>
+struct DefaultSingletonTraits;
// The implementation of AppsClient for Chrome.
class ChromeAppsClient : public apps::AppsClient {
@@ -29,10 +30,18 @@ class ChromeAppsClient : public apps::AppsClient {
virtual apps::AppWindow* CreateAppWindow(
content::BrowserContext* context,
const extensions::Extension* extension) OVERRIDE;
+ virtual apps::NativeAppWindow* CreateNativeAppWindow(
+ apps::AppWindow* window,
+ const apps::AppWindow::CreateParams& params) OVERRIDE;
virtual void IncrementKeepAliveCount() OVERRIDE;
virtual void DecrementKeepAliveCount() OVERRIDE;
+ // Implemented in platform specific code.
+ static apps::NativeAppWindow* CreateNativeAppWindowImpl(
+ apps::AppWindow* window,
+ const apps::AppWindow::CreateParams& params);
+
DISALLOW_COPY_AND_ASSIGN(ChromeAppsClient);
};
-#endif // CHROME_BROWSER_APPS_CHROME_APPS_CLIENT_H_
+#endif // CHROME_BROWSER_UI_APPS_CHROME_APPS_CLIENT_H_
« no previous file with comments | « chrome/browser/ui/apps/chrome_app_window_delegate.cc ('k') | chrome/browser/ui/apps/chrome_apps_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698