| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_WIDGET_WIDGET_PARENT_H_ |
| 6 #define UI_VIEWS_WIDGET_WIDGET_PARENT_H_ |
| 7 |
| 8 #include "ui/gfx/native_widget_types.h" |
| 9 |
| 10 namespace views { |
| 11 |
| 12 // Utility struct for storing the parent of a Widget. Most useful on mus where |
| 13 // gfx::NativeWindow is not a ui::Window. |
| 14 struct WidgetParent { |
| 15 static const int kInvalidContainerId = -1; |
| 16 |
| 17 // Used on Windows, Linux and classic ash Chrome OS to specify the parent. |
| 18 // Can be used as a parent under mus if it is a top-level window that has a |
| 19 // corresponding ui::Window. |
| 20 gfx::NativeWindow native_parent = nullptr; |
| 21 |
| 22 // Opaque container ID. Interpretation is platform-specific. Commonly used to |
| 23 // store an ash shell window ID in mash. |
| 24 int container_id = kInvalidContainerId; |
| 25 |
| 26 // TODO(jamescook): Add display ID. |
| 27 }; |
| 28 |
| 29 } // namespace views |
| 30 |
| 31 #endif // UI_VIEWS_WIDGET_WIDGET_PARENT_H_ |
| OLD | NEW |