| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WI
NDOW_INTERNAL_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WI
NDOW_INTERNAL_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WI
NDOW_INTERNAL_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WI
NDOW_INTERNAL_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 9 | 9 |
| 10 namespace apps { | 10 namespace apps { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 : public AppCurrentWindowInternalExtensionFunction { | 192 : public AppCurrentWindowInternalExtensionFunction { |
| 193 public: | 193 public: |
| 194 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop", | 194 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop", |
| 195 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP) | 195 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP) |
| 196 | 196 |
| 197 protected: | 197 protected: |
| 198 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {} | 198 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {} |
| 199 virtual bool RunWithWindow(apps::AppWindow* window) OVERRIDE; | 199 virtual bool RunWithWindow(apps::AppWindow* window) OVERRIDE; |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 class AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction |
| 203 : public AppCurrentWindowInternalExtensionFunction { |
| 204 public: |
| 205 DECLARE_EXTENSION_FUNCTION( |
| 206 "app.currentWindowInternal.setVisibleOnAllWorkspaces", |
| 207 APP_CURRENTWINDOWINTERNAL_SETVISIBLEONALLWORKSPACES) |
| 208 |
| 209 protected: |
| 210 virtual ~AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction() {} |
| 211 virtual bool RunWithWindow(apps::AppWindow* window) OVERRIDE; |
| 212 }; |
| 213 |
| 202 } // namespace extensions | 214 } // namespace extensions |
| 203 | 215 |
| 204 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT
_WINDOW_INTERNAL_API_H_ | 216 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT
_WINDOW_INTERNAL_API_H_ |
| OLD | NEW |