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

Side by Side Diff: ui/views/mus/platform_window_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/native_widget_mus.h ('k') | ui/views/mus/platform_window_mus.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_PLATFORM_WINDOW_MUS_H_ 5 #ifndef UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ 6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void ToggleFullscreen() override; 57 void ToggleFullscreen() override;
58 void Maximize() override; 58 void Maximize() override;
59 void Minimize() override; 59 void Minimize() override;
60 void Restore() override; 60 void Restore() override;
61 void SetCursor(ui::PlatformCursor cursor) override; 61 void SetCursor(ui::PlatformCursor cursor) override;
62 void MoveCursorTo(const gfx::Point& location) override; 62 void MoveCursorTo(const gfx::Point& location) override;
63 void ConfineCursorToBounds(const gfx::Rect& bounds) override; 63 void ConfineCursorToBounds(const gfx::Rect& bounds) override;
64 ui::PlatformImeController* GetPlatformImeController() override; 64 ui::PlatformImeController* GetPlatformImeController() override;
65 65
66 private: 66 private:
67 friend class PlatformWindowMusTest;
68
67 void SetShowState(mus::mojom::ShowState show_state); 69 void SetShowState(mus::mojom::ShowState show_state);
68 70
69 // mus::WindowObserver: 71 // mus::WindowObserver:
70 void OnWindowDestroyed(mus::Window* window) override; 72 void OnWindowDestroyed(mus::Window* window) override;
71 void OnWindowBoundsChanged(mus::Window* window, 73 void OnWindowBoundsChanged(mus::Window* window,
72 const gfx::Rect& old_bounds, 74 const gfx::Rect& old_bounds,
73 const gfx::Rect& new_bounds) override; 75 const gfx::Rect& new_bounds) override;
74 void OnWindowFocusChanged(mus::Window* gained_focus, 76 void OnWindowFocusChanged(mus::Window* gained_focus,
75 mus::Window* lost_focus) override; 77 mus::Window* lost_focus) override;
76 void OnWindowPredefinedCursorChanged(mus::Window* window, 78 void OnWindowPredefinedCursorChanged(mus::Window* window,
(...skipping 25 matching lines...) Expand all
102 #ifndef NDEBUG 104 #ifndef NDEBUG
103 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; 105 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_;
104 #endif 106 #endif
105 107
106 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); 108 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus);
107 }; 109 };
108 110
109 } // namespace views 111 } // namespace views
110 112
111 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ 113 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/platform_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698