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

Unified Diff: apps/native_app_window.h

Issue 21344002: Move native_app_window code to apps areas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to after mac app shim fix Created 7 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 | « apps/apps.gypi ('k') | apps/shell_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/native_app_window.h
diff --git a/chrome/browser/ui/extensions/native_app_window.h b/apps/native_app_window.h
similarity index 80%
rename from chrome/browser/ui/extensions/native_app_window.h
rename to apps/native_app_window.h
index 3e030f273b75141e2e4059f22006aea42269cd4f..81e6d5be7dc84cfde586604c83183bf6ba48b6c0 100644
--- a/chrome/browser/ui/extensions/native_app_window.h
+++ b/apps/native_app_window.h
@@ -2,25 +2,22 @@
// 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_NATIVE_APP_WINDOW_H_
-#define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
+#ifndef APPS_NATIVE_APP_WINDOW_H_
+#define APPS_NATIVE_APP_WINDOW_H_
#include "apps/shell_window.h"
#include "components/web_modal/web_contents_modal_dialog_host.h"
#include "ui/base/base_window.h"
#include "ui/gfx/insets.h"
+namespace apps {
+
// This is an interface to a native implementation of a shell window, used for
// new-style packaged apps. Shell windows contain a web contents, but no tabs
// or URL bar.
class NativeAppWindow : public ui::BaseWindow,
public web_modal::WebContentsModalDialogHost {
public:
- // Used by apps::ShellWindow to instantiate the platform-specific
- // apps::ShellWindow code.
- static NativeAppWindow* Create(apps::ShellWindow* window,
- const apps::ShellWindow::CreateParams& params);
-
// Called when the draggable regions are changed.
virtual void UpdateDraggableRegions(
const std::vector<extensions::DraggableRegion>& regions) = 0;
@@ -53,4 +50,6 @@ class NativeAppWindow : public ui::BaseWindow,
virtual ~NativeAppWindow() {}
};
-#endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
+} // namespace apps
+
+#endif // APPS_NATIVE_APP_WINDOW_H_
« no previous file with comments | « apps/apps.gypi ('k') | apps/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698