Chromium Code Reviews| Index: extensions/browser/app_window/app_window.cc |
| diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc |
| index c1959a98c82541c665e543ff7fba235de8b74b5f..c23fda7313c42390e747eb90af64d8926e56e2fc 100644 |
| --- a/extensions/browser/app_window/app_window.cc |
| +++ b/extensions/browser/app_window/app_window.cc |
| @@ -603,6 +603,17 @@ void AppWindow::OSFullscreen() { |
| SetFullscreen(FULLSCREEN_TYPE_OS, true); |
| } |
| +void AppWindow::UpdateOSFullscreenState(bool is_fullscreen) { |
| + if (is_fullscreen) { |
| + fullscreen_types_ |= FULLSCREEN_TYPE_OS; |
|
tapted
2015/06/09 06:04:01
why not just `=`? i.e. shouldn't this override any
jackhou1
2015/06/10 05:06:03
Yes, but the way it works now in patch set 5 means
|
| + } else { |
| + fullscreen_types_ = FULLSCREEN_TYPE_NONE; |
| + SetNativeWindowFullscreen(); |
|
tapted
2015/06/09 06:04:01
Is this still needed?
jackhou1
2015/06/10 05:06:03
It's needed to set the always-on-top state. But th
|
| + } |
| + |
| + OnNativeWindowChanged(); |
|
tapted
2015/06/09 06:04:01
What about just rolling the fullscreen check into
jackhou1
2015/06/10 05:06:03
Done.
|
| +} |
| + |
| void AppWindow::ForcedFullscreen() { |
| SetFullscreen(FULLSCREEN_TYPE_FORCED, true); |
| } |