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

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

Issue 1891233006: mus: Fix handled status in UI event ack, add MessageLoop::NestingObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eventresult
Patch Set: review comments 3 Created 4 years, 7 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
« no previous file with comments | « ui/views/mus/BUILD.gn ('k') | ui/views/mus/platform_window_mus.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 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Configures the set of properties supplied to the window manager when 66 // Configures the set of properties supplied to the window manager when
67 // creating a new Window for a Widget. 67 // creating a new Window for a Widget.
68 static void ConfigurePropertiesForNewWindow( 68 static void ConfigurePropertiesForNewWindow(
69 const Widget::InitParams& init_params, 69 const Widget::InitParams& init_params,
70 std::map<std::string, std::vector<uint8_t>>* properties); 70 std::map<std::string, std::vector<uint8_t>>* properties);
71 71
72 // Notifies all widgets the frame constants changed in some way. 72 // Notifies all widgets the frame constants changed in some way.
73 static void NotifyFrameChanged(mus::WindowTreeConnection* connection); 73 static void NotifyFrameChanged(mus::WindowTreeConnection* connection);
74 74
75 mus::Window* window() { return window_; } 75 mus::Window* window() { return window_; }
76 WindowTreeHostMus* window_tree_host() { return window_tree_host_.get(); }
76 77
77 aura::Window* GetRootWindow(); 78 aura::Window* GetRootWindow();
78 79
79 void OnPlatformWindowClosed(); 80 void OnPlatformWindowClosed();
80 void OnActivationChanged(bool active); 81 void OnActivationChanged(bool active);
81 82
82 protected: 83 protected:
83 // Updates the client area in the mus::Window. 84 // Updates the client area in the mus::Window.
84 virtual void UpdateClientArea(); 85 virtual void UpdateClientArea();
85 86
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_; 229 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_;
229 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 230 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
230 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 231 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
231 232
232 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
233 }; 234 };
234 235
235 } // namespace views 236 } // namespace views
236 237
237 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 238 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/BUILD.gn ('k') | ui/views/mus/platform_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698