Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ui/views/widget/widget_parent.h

Issue 2426473009: mash: Place views Wi-Fi network config dialogs in correct window parent (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698