| 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 APPS_UI_NATIVE_APP_WINDOW_H_ | 5 #ifndef APPS_UI_NATIVE_APP_WINDOW_H_ |
| 6 #define APPS_UI_NATIVE_APP_WINDOW_H_ | 6 #define APPS_UI_NATIVE_APP_WINDOW_H_ |
| 7 | 7 |
| 8 #include "apps/shell_window.h" | 8 #include "apps/shell_window.h" |
| 9 #include "components/web_modal/web_contents_modal_dialog_host.h" | 9 #include "components/web_modal/web_contents_modal_dialog_host.h" |
| 10 #include "ui/base/base_window.h" | 10 #include "ui/base/base_window.h" |
| 11 #include "ui/gfx/insets.h" | 11 #include "ui/gfx/insets.h" |
| 12 | 12 |
| 13 namespace apps { | 13 namespace apps { |
| 14 | 14 |
| 15 // This is an interface to a native implementation of a shell window, used for | 15 // This is an interface to a native implementation of a shell window, used for |
| 16 // new-style packaged apps. Shell windows contain a web contents, but no tabs | 16 // new-style packaged apps. Shell windows contain a web contents, but no tabs |
| 17 // or URL bar. | 17 // or URL bar. |
| 18 class NativeAppWindow : public ui::BaseWindow, | 18 class NativeAppWindow : public ui::BaseWindow, |
| 19 public web_modal::WebContentsModalDialogHost { | 19 public web_modal::WebContentsModalDialogHost { |
| 20 public: | 20 public: |
| 21 // Fullscreen changes may be asynchronous on some platforms. | 21 // Sets whether the window is fullscreen and the type of fullscreen. |
| 22 virtual void SetFullscreen(bool fullscreen) = 0; | 22 virtual void SetFullscreen(ShellWindow::FullscreenType type) = 0; |
| 23 virtual bool IsFullscreenOrPending() const = 0; | 23 |
| 24 // Returns true if the window supports immersive fullscreen. |
| 25 virtual bool SupportsImmersiveFullscreen() const = 0; |
| 24 | 26 |
| 25 // Returns true if the window is a panel that has been detached. | 27 // Returns true if the window is a panel that has been detached. |
| 26 virtual bool IsDetached() const = 0; | 28 virtual bool IsDetached() const = 0; |
| 27 | 29 |
| 28 // Called when the icon of the window changes. | 30 // Called when the icon of the window changes. |
| 29 virtual void UpdateWindowIcon() = 0; | 31 virtual void UpdateWindowIcon() = 0; |
| 30 | 32 |
| 31 // Called when the title of the window changes. | 33 // Called when the title of the window changes. |
| 32 virtual void UpdateWindowTitle() = 0; | 34 virtual void UpdateWindowTitle() = 0; |
| 33 | 35 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 64 // Updates the minimum and maximum size of the native window with the current | 66 // Updates the minimum and maximum size of the native window with the current |
| 65 // size constraints. | 67 // size constraints. |
| 66 virtual void UpdateWindowMinMaxSize() = 0; | 68 virtual void UpdateWindowMinMaxSize() = 0; |
| 67 | 69 |
| 68 virtual ~NativeAppWindow() {} | 70 virtual ~NativeAppWindow() {} |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace apps | 73 } // namespace apps |
| 72 | 74 |
| 73 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ | 75 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |