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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 2448243003: MacViews: Reattach children of native windows when they are exposed. (Closed)
Patch Set: respond to comments Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/cocoa/widget_owner_nswindow_adapter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 // The parent widget specified in Widget::InitParams::parent. If non-null, the 187 // The parent widget specified in Widget::InitParams::parent. If non-null, the
188 // parent will close children before the parent closes, and children will be 188 // parent will close children before the parent closes, and children will be
189 // raised above their parent when window z-order changes. 189 // raised above their parent when window z-order changes.
190 BridgedNativeWidgetOwner* parent() { return parent_; } 190 BridgedNativeWidgetOwner* parent() { return parent_; }
191 const std::vector<BridgedNativeWidget*>& child_windows() { 191 const std::vector<BridgedNativeWidget*>& child_windows() {
192 return child_windows_; 192 return child_windows_;
193 } 193 }
194 194
195 bool target_fullscreen_state() const { return target_fullscreen_state_; } 195 bool target_fullscreen_state() const { return target_fullscreen_state_; }
196 bool window_visible() { return window_visible_; } 196 bool window_visible() const { return window_visible_; }
197 bool wants_to_be_visible() const { return wants_to_be_visible_; }
197 198
198 // Overridden from ui::internal::InputMethodDelegate: 199 // Overridden from ui::internal::InputMethodDelegate:
199 ui::EventDispatchDetails DispatchKeyEventPostIME(ui::KeyEvent* key) override; 200 ui::EventDispatchDetails DispatchKeyEventPostIME(ui::KeyEvent* key) override;
200 201
201 private: 202 private:
202 friend class test::BridgedNativeWidgetTestApi; 203 friend class test::BridgedNativeWidgetTestApi;
203 204
204 // Closes all child windows. BridgedNativeWidget children will be destroyed. 205 // Closes all child windows. BridgedNativeWidget children will be destroyed.
205 void RemoveOrDestroyChildren(); 206 void RemoveOrDestroyChildren();
206 207
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 bool initial_visibility_suppressed_ = false; 320 bool initial_visibility_suppressed_ = false;
320 321
321 AssociatedViews associated_views_; 322 AssociatedViews associated_views_;
322 323
323 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 324 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
324 }; 325 };
325 326
326 } // namespace views 327 } // namespace views
327 328
328 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 329 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/cocoa/widget_owner_nswindow_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698