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

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: Initialize AppWindow::CreateParams::visible_on_all_workspaces. Created 6 years, 3 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 extensions { 10 namespace extensions {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698