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

Side by Side Diff: ui/views/mus/native_widget_mus.h

Issue 2387013003: Adds OnChildWindowVisibilityChanged to ui::WindowObserver (Closed)
Patch Set: fix test 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
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698