| 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/app_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 app window, used for |
| 16 // new-style packaged apps. Shell windows contain a web contents, but no tabs | 16 // new-style packaged apps. App 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 // Sets whether the window is fullscreen and the type of fullscreen. | 21 // Sets whether the window is fullscreen and the type of fullscreen. |
| 22 // |fullscreen_types| is a bit field of ShellWindow::FullscreenType. | 22 // |fullscreen_types| is a bit field of AppWindow::FullscreenType. |
| 23 virtual void SetFullscreen(int fullscreen_types) = 0; | 23 virtual void SetFullscreen(int fullscreen_types) = 0; |
| 24 | 24 |
| 25 // Returns whether the window is fullscreen or about to enter fullscreen. | 25 // Returns whether the window is fullscreen or about to enter fullscreen. |
| 26 virtual bool IsFullscreenOrPending() const = 0; | 26 virtual bool IsFullscreenOrPending() const = 0; |
| 27 | 27 |
| 28 // Returns true if the window is a panel that has been detached. | 28 // Returns true if the window is a panel that has been detached. |
| 29 virtual bool IsDetached() const = 0; | 29 virtual bool IsDetached() const = 0; |
| 30 | 30 |
| 31 // Called when the icon of the window changes. | 31 // Called when the icon of the window changes. |
| 32 virtual void UpdateWindowIcon() = 0; | 32 virtual void UpdateWindowIcon() = 0; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Updates the minimum and maximum size of the native window with the current | 70 // Updates the minimum and maximum size of the native window with the current |
| 71 // size constraints. | 71 // size constraints. |
| 72 virtual void UpdateWindowMinMaxSize() = 0; | 72 virtual void UpdateWindowMinMaxSize() = 0; |
| 73 | 73 |
| 74 virtual ~NativeAppWindow() {} | 74 virtual ~NativeAppWindow() {} |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace apps | 77 } // namespace apps |
| 78 | 78 |
| 79 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ | 79 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |