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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 // Returns true if this NativeWidgetMus exists on the window manager side | 250 // Returns true if this NativeWidgetMus exists on the window manager side |
251 // to provide the frame decorations. | 251 // to provide the frame decorations. |
252 bool is_parallel_widget_in_window_manager() { | 252 bool is_parallel_widget_in_window_manager() { |
253 return surface_type_ == ui::mojom::SurfaceType::UNDERLAY; | 253 return surface_type_ == ui::mojom::SurfaceType::UNDERLAY; |
254 } | 254 } |
255 | 255 |
256 void set_last_cursor(ui::mojom::Cursor cursor) { last_cursor_ = cursor; } | 256 void set_last_cursor(ui::mojom::Cursor cursor) { last_cursor_ = cursor; } |
257 void SetShowState(ui::mojom::ShowState show_state); | 257 void SetShowState(ui::mojom::ShowState show_state); |
258 | 258 |
259 void OnMusWindowVisibilityChanging(ui::Window* window); | 259 void OnMusWindowVisibilityChanging(ui::Window* window, bool visible); |
260 void OnMusWindowVisibilityChanged(ui::Window* window); | 260 void OnMusWindowVisibilityChanged(ui::Window* window, bool visible); |
261 | 261 |
262 // Propagates the widget hit test mask, if any, to the ui::Window. | 262 // Propagates the widget hit test mask, if any, to the ui::Window. |
263 // TODO(jamescook): Wire this through views::Widget so widgets can push | 263 // TODO(jamescook): Wire this through views::Widget so widgets can push |
264 // updates if needed. | 264 // updates if needed. |
265 void UpdateHitTestMask(); | 265 void UpdateHitTestMask(); |
266 | 266 |
267 ui::Window* window_; | 267 ui::Window* window_; |
268 ui::mojom::Cursor last_cursor_; | 268 ui::mojom::Cursor last_cursor_; |
269 | 269 |
270 internal::NativeWidgetDelegate* native_widget_delegate_; | 270 internal::NativeWidgetDelegate* native_widget_delegate_; |
(...skipping 30 matching lines...) Expand all Loading... |
301 int last_drop_operation_; | 301 int last_drop_operation_; |
302 | 302 |
303 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 303 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
304 | 304 |
305 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 305 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
306 }; | 306 }; |
307 | 307 |
308 } // namespace views | 308 } // namespace views |
309 | 309 |
310 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 310 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
OLD | NEW |