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

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

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache state of isAlwaysOnTop in widget. Fixed clobber in x11 window init. Created 7 years, 2 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
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/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 9
10 namespace apps { 10 namespace apps {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 : public AppCurrentWindowInternalExtensionFunction { 148 : public AppCurrentWindowInternalExtensionFunction {
149 public: 149 public:
150 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setInputRegion", 150 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setInputRegion",
151 APP_CURRENTWINDOWINTERNAL_SETINPUTREGION) 151 APP_CURRENTWINDOWINTERNAL_SETINPUTREGION)
152 152
153 protected: 153 protected:
154 virtual ~AppCurrentWindowInternalSetInputRegionFunction() {} 154 virtual ~AppCurrentWindowInternalSetInputRegionFunction() {}
155 virtual bool RunWithWindow(apps::ShellWindow* window) OVERRIDE; 155 virtual bool RunWithWindow(apps::ShellWindow* window) OVERRIDE;
156 }; 156 };
157 157
158 class AppCurrentWindowInternalSetAlwaysOnTopFunction
159 : public AppCurrentWindowInternalExtensionFunction {
160 public:
161 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop",
162 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP)
163
164 protected:
165 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {}
166 virtual bool RunWithWindow(apps::ShellWindow* window) OVERRIDE;
167 };
168
158 } // namespace extensions 169 } // namespace extensions
159 170
160 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT _WINDOW_INTERNAL_API_H_ 171 #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