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

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

Issue 10878040: Move context-sensitive app.window.* functions to app.window.current().* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 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
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 8ac57b98bdb63ab914dbe60617a2d8cef1ac96fd..70b0e4ac80dcbdb807af390936160a66e1826260 100644
--- a/chrome/browser/extensions/api/app_window/app_window_api.h
+++ b/chrome/browser/extensions/api/app_window/app_window_api.h
@@ -7,21 +7,8 @@
#include "chrome/browser/extensions/extension_function.h"
-class ShellWindow;
-
namespace extensions {
-class AppWindowExtensionFunction : public SyncExtensionFunction {
- protected:
- virtual ~AppWindowExtensionFunction() {}
-
- // Invoked with the current shell window.
- virtual bool RunWithWindow(ShellWindow* window) = 0;
-
- private:
- virtual bool RunImpl() OVERRIDE;
-};
-
class AppWindowCreateFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION_NAME("app.window.create");
@@ -31,42 +18,6 @@ class AppWindowCreateFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
-class AppWindowFocusFunction : public AppWindowExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("app.window.focus");
-
- protected:
- virtual ~AppWindowFocusFunction() {}
- virtual bool RunWithWindow(ShellWindow* window) OVERRIDE;
-};
-
-class AppWindowMaximizeFunction : public AppWindowExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("app.window.maximize");
-
- protected:
- virtual ~AppWindowMaximizeFunction() {}
- virtual bool RunWithWindow(ShellWindow* window) OVERRIDE;
-};
-
-class AppWindowMinimizeFunction : public AppWindowExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("app.window.minimize");
-
- protected:
- virtual ~AppWindowMinimizeFunction() {}
- virtual bool RunWithWindow(ShellWindow* window) OVERRIDE;
-};
-
-class AppWindowRestoreFunction : public AppWindowExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("app.window.restore");
-
- protected:
- virtual ~AppWindowRestoreFunction() {}
- virtual bool RunWithWindow(ShellWindow* window) OVERRIDE;
-};
-
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_APP_WINDOW_APP_WINDOW_API_H_

Powered by Google App Engine
This is Rietveld 408576698