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/app_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 "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // This may have different logic to Hide, Show, and ShowInactive as those are | 70 // This may have different logic to Hide, Show, and ShowInactive as those are |
71 // called via the AppWindow javascript API. | 71 // called via the AppWindow javascript API. |
72 virtual void ShowWithApp() = 0; | 72 virtual void ShowWithApp() = 0; |
73 virtual void HideWithApp() = 0; | 73 virtual void HideWithApp() = 0; |
74 | 74 |
75 // Updates custom entries for the context menu of the app's taskbar/dock/shelf | 75 // Updates custom entries for the context menu of the app's taskbar/dock/shelf |
76 // icon. | 76 // icon. |
77 virtual void UpdateShelfMenu() = 0; | 77 virtual void UpdateShelfMenu() = 0; |
78 | 78 |
79 // Returns the minimum size constraints of the content. | 79 // Returns the minimum size constraints of the content. |
80 virtual gfx::Size GetMinimumSize() const = 0; | 80 virtual gfx::Size GetContentMinimumSize() const = 0; |
81 | 81 |
82 // Updates the minimum size constraints of the content. | 82 // Updates the minimum size constraints of the content. |
83 virtual void SetMinimumSize(const gfx::Size& size) = 0; | 83 virtual void SetContentMinimumSize(const gfx::Size& size) = 0; |
84 | 84 |
85 // Returns the maximum size constraints of the content. | 85 // Returns the maximum size constraints of the content. |
86 virtual gfx::Size GetMaximumSize() const = 0; | 86 virtual gfx::Size GetContentMaximumSize() const = 0; |
87 | 87 |
88 // Updates the maximum size constraints of the content. | 88 // Updates the maximum size constraints of the content. |
89 virtual void SetMaximumSize(const gfx::Size& size) = 0; | 89 virtual void SetContentMaximumSize(const gfx::Size& size) = 0; |
90 | 90 |
91 virtual ~NativeAppWindow() {} | 91 virtual ~NativeAppWindow() {} |
92 }; | 92 }; |
93 | 93 |
94 } // namespace apps | 94 } // namespace apps |
95 | 95 |
96 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ | 96 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ |
OLD | NEW |