OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ASH_WM_WINDOW_STATE_DELEGATE_H_ | 5 #ifndef ASH_WM_WINDOW_STATE_DELEGATE_H_ |
6 #define ASH_WM_WINDOW_STATE_DELEGATE_H_ | 6 #define ASH_WM_WINDOW_STATE_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 namespace wm { | 12 namespace wm { |
13 class WindowState; | 13 class WindowState; |
14 | 14 |
15 class ASH_EXPORT WindowStateDelegate { | 15 class ASH_EXPORT WindowStateDelegate { |
16 public: | 16 public: |
17 WindowStateDelegate(); | 17 WindowStateDelegate(); |
18 virtual ~WindowStateDelegate(); | 18 virtual ~WindowStateDelegate(); |
19 | 19 |
20 // Invoked when the user uses Shift+F4/F4 to toggle the window | 20 // Enters immersive fullscreen or regular fullscreen depending on whether |
21 // fullscreen state. The caller (ash::wm::WindowState) falls backs | 21 // immersive fullscreen is supported by the window. This is a no-op if the |
22 // to the default implementation if this returns false. | 22 // window is already in non-immersive fullscreen. The caller |
23 virtual bool ToggleFullscreen(WindowState* window_state); | 23 // (ash::wm::WindowState) falls back to the default implementation if this |
24 // returns false. | |
25 virtual bool EnterImmersiveFullscreen(WindowState* window_state); | |
oshima
2013/11/07 18:56:13
I still think we should call EnterFullscreen becau
pkotwicz
2013/11/07 22:21:48
The reason that I want to call this EnterImmersive
oshima
2013/11/08 00:26:29
But it doesn't enter ImmersiveFullscreen when not
pkotwicz
2013/11/08 01:16:57
I can split EnterImmersiveFullscreen() into two me
| |
26 | |
27 // Exits fullscreen and retores the window's state before it was fullscreen. | |
28 // The caller (ash::wm::WindowState) falls back to the default implementation | |
29 // if this returns false. | |
30 virtual bool ExitFullscreen(WindowState* window_state); | |
oshima
2013/11/07 18:56:13
Thanks, I'll look into restoring from fullscreen s
| |
24 | 31 |
25 private: | 32 private: |
26 DISALLOW_COPY_AND_ASSIGN(WindowStateDelegate); | 33 DISALLOW_COPY_AND_ASSIGN(WindowStateDelegate); |
27 }; | 34 }; |
28 | 35 |
29 } // namespace wm | 36 } // namespace wm |
30 } // namespace ash | 37 } // namespace ash |
31 | 38 |
32 #endif // ASH_WM_WINDOW_STATE_DELEGATE_H_ | 39 #endif // ASH_WM_WINDOW_STATE_DELEGATE_H_ |
OLD | NEW |