OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MUS_NATIVE_WIDGET_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 // Returns true if this NativeWidgetMus exists on the window manager side | 254 // Returns true if this NativeWidgetMus exists on the window manager side |
255 // to provide the frame decorations. | 255 // to provide the frame decorations. |
256 bool is_parallel_widget_in_window_manager() { | 256 bool is_parallel_widget_in_window_manager() { |
257 return surface_type_ == ui::mojom::SurfaceType::UNDERLAY; | 257 return surface_type_ == ui::mojom::SurfaceType::UNDERLAY; |
258 } | 258 } |
259 | 259 |
260 void set_last_cursor(ui::mojom::Cursor cursor) { last_cursor_ = cursor; } | 260 void set_last_cursor(ui::mojom::Cursor cursor) { last_cursor_ = cursor; } |
261 void SetShowState(ui::mojom::ShowState show_state); | 261 void SetShowState(ui::mojom::ShowState show_state); |
262 | 262 |
263 void OnMusWindowVisibilityChanging(ui::Window* window); | 263 void OnMusWindowVisibilityChanging(ui::Window* window, bool visible); |
264 void OnMusWindowVisibilityChanged(ui::Window* window); | 264 void OnMusWindowVisibilityChanged(ui::Window* window, bool visible); |
265 | 265 |
266 // Propagates the widget hit test mask, if any, to the ui::Window. | 266 // Propagates the widget hit test mask, if any, to the ui::Window. |
267 // TODO(jamescook): Wire this through views::Widget so widgets can push | 267 // TODO(jamescook): Wire this through views::Widget so widgets can push |
268 // updates if needed. | 268 // updates if needed. |
269 void UpdateHitTestMask(); | 269 void UpdateHitTestMask(); |
270 | 270 |
271 ui::Window* window_; | 271 ui::Window* window_; |
272 ui::mojom::Cursor last_cursor_; | 272 ui::mojom::Cursor last_cursor_; |
273 | 273 |
274 internal::NativeWidgetDelegate* native_widget_delegate_; | 274 internal::NativeWidgetDelegate* native_widget_delegate_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 std::unique_ptr<TooltipManagerAura> tooltip_manager_; | 308 std::unique_ptr<TooltipManagerAura> tooltip_manager_; |
309 | 309 |
310 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 310 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
311 | 311 |
312 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 312 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
313 }; | 313 }; |
314 | 314 |
315 } // namespace views | 315 } // namespace views |
316 | 316 |
317 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 317 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
OLD | NEW |