OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 APPS_APP_WINDOW_H_ | 5 #ifndef APPS_APP_WINDOW_H_ |
6 #define APPS_APP_WINDOW_H_ | 6 #define APPS_APP_WINDOW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/extension_icon_image.h" | 10 #include "chrome/browser/extensions/extension_icon_image.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 void Show(ShowType show_type); | 330 void Show(ShowType show_type); |
331 | 331 |
332 // Hides the window. If the window was previously flagged to be shown on | 332 // Hides the window. If the window was previously flagged to be shown on |
333 // first paint, it will be unflagged. | 333 // first paint, it will be unflagged. |
334 void Hide(); | 334 void Hide(); |
335 | 335 |
336 AppWindowContents* app_window_contents_for_test() { | 336 AppWindowContents* app_window_contents_for_test() { |
337 return app_window_contents_.get(); | 337 return app_window_contents_.get(); |
338 } | 338 } |
339 | 339 |
| 340 int fullscreen_types_for_test() { |
| 341 return fullscreen_types_; |
| 342 } |
| 343 |
340 // Set whether the window should stay above other windows which are not | 344 // Set whether the window should stay above other windows which are not |
341 // configured to be always-on-top. | 345 // configured to be always-on-top. |
342 void SetAlwaysOnTop(bool always_on_top); | 346 void SetAlwaysOnTop(bool always_on_top); |
343 | 347 |
344 // Whether the always-on-top property has been set by the chrome.app.window | 348 // Whether the always-on-top property has been set by the chrome.app.window |
345 // API. Note that the actual value of this property in the native app window | 349 // API. Note that the actual value of this property in the native app window |
346 // may be false if the bit is silently switched off for security reasons. | 350 // may be false if the bit is silently switched off for security reasons. |
347 bool IsAlwaysOnTop() const; | 351 bool IsAlwaysOnTop() const; |
348 | 352 |
349 // Retrieve the current state of the app window as a dictionary, to pass to | 353 // Retrieve the current state of the app window as a dictionary, to pass to |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // reinstated when the window exits fullscreen and moves away from the | 531 // reinstated when the window exits fullscreen and moves away from the |
528 // taskbar. | 532 // taskbar. |
529 bool cached_always_on_top_; | 533 bool cached_always_on_top_; |
530 | 534 |
531 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 535 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
532 }; | 536 }; |
533 | 537 |
534 } // namespace apps | 538 } // namespace apps |
535 | 539 |
536 #endif // APPS_APP_WINDOW_H_ | 540 #endif // APPS_APP_WINDOW_H_ |
OLD | NEW |