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

Side by Side Diff: extensions/browser/app_window/app_window.h

Issue 1172483003: [MacViews] Update AppWindow when the native window changes fullscreen state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views
Patch Set: Don't remove ChromeNativeAppWindowViews::is_fullscreen_ Created 5 years, 6 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 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Transitions window into fullscreen, maximized, minimized or restores based 281 // Transitions window into fullscreen, maximized, minimized or restores based
282 // on chrome.app.window API. 282 // on chrome.app.window API.
283 void Fullscreen(); 283 void Fullscreen();
284 void Maximize(); 284 void Maximize();
285 void Minimize(); 285 void Minimize();
286 void Restore(); 286 void Restore();
287 287
288 // Transitions to OS fullscreen. See FULLSCREEN_TYPE_OS for more details. 288 // Transitions to OS fullscreen. See FULLSCREEN_TYPE_OS for more details.
289 void OSFullscreen(); 289 void OSFullscreen();
290 290
291 // Called when the OS has made the window fullscreen to ensure AppWindow stays
292 // in sync.
293 void UpdateOSFullscreenState(bool is_fullscreen);
tapted 2015/06/09 06:04:01 nit: Maybe OnOSFullscreenStateChanged? or OnBecame
jackhou1 2015/06/10 05:06:03 Removed.
294
291 // Transitions to forced fullscreen. See FULLSCREEN_TYPE_FORCED for more 295 // Transitions to forced fullscreen. See FULLSCREEN_TYPE_FORCED for more
292 // details. 296 // details.
293 void ForcedFullscreen(); 297 void ForcedFullscreen();
294 298
295 // Set the minimum and maximum size of the content bounds. 299 // Set the minimum and maximum size of the content bounds.
296 void SetContentSizeConstraints(const gfx::Size& min_size, 300 void SetContentSizeConstraints(const gfx::Size& min_size,
297 const gfx::Size& max_size); 301 const gfx::Size& max_size);
298 302
299 enum ShowType { SHOW_ACTIVE, SHOW_INACTIVE }; 303 enum ShowType { SHOW_ACTIVE, SHOW_INACTIVE };
300 304
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 bool is_ime_window_; 552 bool is_ime_window_;
549 553
550 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; 554 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_;
551 555
552 DISALLOW_COPY_AND_ASSIGN(AppWindow); 556 DISALLOW_COPY_AND_ASSIGN(AppWindow);
553 }; 557 };
554 558
555 } // namespace extensions 559 } // namespace extensions
556 560
557 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 561 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698