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

Side by Side Diff: chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.h

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698