| 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_NATIVE_APP_WINDOW_H_ | 5 #ifndef APPS_NATIVE_APP_WINDOW_H_ |
| 6 #define APPS_NATIVE_APP_WINDOW_H_ | 6 #define APPS_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" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Returns the difference between the window bounds (including titlebar and | 46 // Returns the difference between the window bounds (including titlebar and |
| 47 // borders) and the content bounds, if any. | 47 // borders) and the content bounds, if any. |
| 48 virtual gfx::Insets GetFrameInsets() const = 0; | 48 virtual gfx::Insets GetFrameInsets() const = 0; |
| 49 | 49 |
| 50 // Hide or show this window as part of hiding or showing the app. | 50 // Hide or show this window as part of hiding or showing the app. |
| 51 // This may have different logic to Hide, Show, and ShowInactive as those are | 51 // This may have different logic to Hide, Show, and ShowInactive as those are |
| 52 // called via the AppWindow javascript API. | 52 // called via the AppWindow javascript API. |
| 53 virtual void ShowWithApp() = 0; | 53 virtual void ShowWithApp() = 0; |
| 54 virtual void HideWithApp() = 0; | 54 virtual void HideWithApp() = 0; |
| 55 | 55 |
| 56 // If |always_on_top| is true, the window will stay on top of windows that do |
| 57 // not have this flag enabled. |
| 58 virtual void SetAlwaysOnTop(bool always_on_top) = 0; |
| 59 |
| 56 virtual ~NativeAppWindow() {} | 60 virtual ~NativeAppWindow() {} |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 } // namespace apps | 63 } // namespace apps |
| 60 | 64 |
| 61 #endif // APPS_NATIVE_APP_WINDOW_H_ | 65 #endif // APPS_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |