| 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 extensions { | 10 namespace extensions { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 : public AppCurrentWindowInternalExtensionFunction { | 190 : public AppCurrentWindowInternalExtensionFunction { |
| 191 public: | 191 public: |
| 192 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop", | 192 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop", |
| 193 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP) | 193 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP) |
| 194 | 194 |
| 195 protected: | 195 protected: |
| 196 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {} | 196 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {} |
| 197 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; | 197 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 class AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction |
| 201 : public AppCurrentWindowInternalExtensionFunction { |
| 202 public: |
| 203 DECLARE_EXTENSION_FUNCTION( |
| 204 "app.currentWindowInternal.setVisibleOnAllWorkspaces", |
| 205 APP_CURRENTWINDOWINTERNAL_SETVISIBLEONALLWORKSPACES) |
| 206 |
| 207 protected: |
| 208 virtual ~AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction() {} |
| 209 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; |
| 210 }; |
| 211 |
| 200 } // namespace extensions | 212 } // namespace extensions |
| 201 | 213 |
| 202 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT
_WINDOW_INTERNAL_API_H_ | 214 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT
_WINDOW_INTERNAL_API_H_ |
| OLD | NEW |