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

Side by Side Diff: apps/app_window.h

Issue 280483004: [Mac] Update fullscreen state when window is fullscreened natively. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698