OLD | NEW |
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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // raised above their parent when window z-order changes. | 165 // raised above their parent when window z-order changes. |
166 BridgedNativeWidgetOwner* parent() { return parent_; } | 166 BridgedNativeWidgetOwner* parent() { return parent_; } |
167 const std::vector<BridgedNativeWidget*>& child_windows() { | 167 const std::vector<BridgedNativeWidget*>& child_windows() { |
168 return child_windows_; | 168 return child_windows_; |
169 } | 169 } |
170 | 170 |
171 bool target_fullscreen_state() const { return target_fullscreen_state_; } | 171 bool target_fullscreen_state() const { return target_fullscreen_state_; } |
172 bool window_visible() { return window_visible_; } | 172 bool window_visible() { return window_visible_; } |
173 | 173 |
174 // Overridden from ui::internal::InputMethodDelegate: | 174 // Overridden from ui::internal::InputMethodDelegate: |
175 bool DispatchKeyEventPostIME(const ui::KeyEvent& key) override; | 175 ui::EventDispatchDetails DispatchKeyEventPostIME(ui::KeyEvent* key) override; |
176 | 176 |
177 private: | 177 private: |
178 friend class test::BridgedNativeWidgetTestApi; | 178 friend class test::BridgedNativeWidgetTestApi; |
179 | 179 |
180 // Closes all child windows. BridgedNativeWidget children will be destroyed. | 180 // Closes all child windows. BridgedNativeWidget children will be destroyed. |
181 void RemoveOrDestroyChildren(); | 181 void RemoveOrDestroyChildren(); |
182 | 182 |
183 // Notify descendants of a visibility change. | 183 // Notify descendants of a visibility change. |
184 void NotifyVisibilityChangeDown(); | 184 void NotifyVisibilityChangeDown(); |
185 | 185 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // If true, the window has been made visible or changed shape and the window | 279 // If true, the window has been made visible or changed shape and the window |
280 // shadow needs to be invalidated when a frame is received for the new shape. | 280 // shadow needs to be invalidated when a frame is received for the new shape. |
281 bool invalidate_shadow_on_frame_swap_ = false; | 281 bool invalidate_shadow_on_frame_swap_ = false; |
282 | 282 |
283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); | 283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); |
284 }; | 284 }; |
285 | 285 |
286 } // namespace views | 286 } // namespace views |
287 | 287 |
288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ | 288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ |
OLD | NEW |