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

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

Issue 1981803003: Move platform_window_mus_unittest to native_widget_mus_unittest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_widget_mus6
Patch Set: Show widgets before running tests that handle input events 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/native_widget_mus_unittest.cc » ('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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; 218 void OnHostCloseRequested(const aura::WindowTreeHost* host) override;
219 219
220 // Overridden from mus::InputEventHandler: 220 // Overridden from mus::InputEventHandler:
221 void OnWindowInputEvent( 221 void OnWindowInputEvent(
222 mus::Window* view, 222 mus::Window* view,
223 const ui::Event& event, 223 const ui::Event& event,
224 std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>* 224 std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>*
225 ack_callback) override; 225 ack_callback) override;
226 226
227 private: 227 private:
228 friend class NativeWidgetMusTest;
228 class MusWindowObserver; 229 class MusWindowObserver;
229 230
230 ui::PlatformWindowDelegate* platform_window_delegate() { 231 ui::PlatformWindowDelegate* platform_window_delegate() {
231 return window_tree_host(); 232 return window_tree_host();
232 } 233 }
233 234
234 void set_last_cursor(mus::mojom::Cursor cursor) { last_cursor_ = cursor; } 235 void set_last_cursor(mus::mojom::Cursor cursor) { last_cursor_ = cursor; }
235 void SetShowState(mus::mojom::ShowState show_state); 236 void SetShowState(mus::mojom::ShowState show_state);
236 237
237 void OnMusWindowVisibilityChanging(mus::Window* window); 238 void OnMusWindowVisibilityChanging(mus::Window* window);
(...skipping 24 matching lines...) Expand all
262 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 263 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
263 std::unique_ptr<wm::CursorManager> cursor_manager_; 264 std::unique_ptr<wm::CursorManager> cursor_manager_;
264 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 265 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 267 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
267 }; 268 };
268 269
269 } // namespace views 270 } // namespace views
270 271
271 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 272 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/BUILD.gn ('k') | ui/views/mus/native_widget_mus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698