| 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" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Hide or show this window as part of hiding or showing the app. | 61 // Hide or show this window as part of hiding or showing the app. |
| 62 // This may have different logic to Hide, Show, and ShowInactive as those are | 62 // This may have different logic to Hide, Show, and ShowInactive as those are |
| 63 // called via the AppWindow javascript API. | 63 // called via the AppWindow javascript API. |
| 64 virtual void ShowWithApp() = 0; | 64 virtual void ShowWithApp() = 0; |
| 65 virtual void HideWithApp() = 0; | 65 virtual void HideWithApp() = 0; |
| 66 | 66 |
| 67 // Updates the minimum and maximum size of the native window with the current | 67 // Updates the minimum and maximum size of the native window with the current |
| 68 // size constraints. | 68 // size constraints. |
| 69 virtual void UpdateWindowMinMaxSize() = 0; | 69 virtual void UpdateWindowMinMaxSize() = 0; |
| 70 | 70 |
| 71 // Updates custom entries for the context menu of the app's taskbar/dock/shelf |
| 72 // icon. |
| 73 virtual void UpdateAppMenu() = 0; |
| 74 |
| 71 virtual ~NativeAppWindow() {} | 75 virtual ~NativeAppWindow() {} |
| 72 }; | 76 }; |
| 73 | 77 |
| 74 } // namespace apps | 78 } // namespace apps |
| 75 | 79 |
| 76 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ | 80 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |