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

Unified Diff: ui/views/mus/platform_window_mus.h

Issue 1883263002: mash: Repost mouse pressed event when closing Ash system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | ui/views/mus/platform_window_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/platform_window_mus.h
diff --git a/ui/views/mus/platform_window_mus.h b/ui/views/mus/platform_window_mus.h
index 7e9caa0961ba675d4e4fac68c1aca0e6627fb862..979957a106542b9b203cc959bcf9305d41defc69 100644
--- a/ui/views/mus/platform_window_mus.h
+++ b/ui/views/mus/platform_window_mus.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/message_loop/message_loop.h"
#include "components/mus/public/cpp/input_event_handler.h"
#include "components/mus/public/cpp/window_observer.h"
#include "ui/platform_window/platform_window.h"
@@ -34,7 +35,8 @@ namespace views {
class VIEWS_MUS_EXPORT PlatformWindowMus
: public NON_EXPORTED_BASE(ui::PlatformWindow),
public mus::WindowObserver,
- public NON_EXPORTED_BASE(mus::InputEventHandler) {
+ public NON_EXPORTED_BASE(mus::InputEventHandler),
+ public base::MessageLoop::NestingObserver {
public:
PlatformWindowMus(ui::PlatformWindowDelegate* delegate,
shell::Connector* connector,
@@ -86,13 +88,22 @@ class VIEWS_MUS_EXPORT PlatformWindowMus
void OnWindowInputEvent(
mus::Window* view,
const ui::Event& event,
- std::unique_ptr<base::Callback<void(bool)>>* ack_callback) override;
+ std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>*
+ ack_callback) override;
+
+ // base::MessageLoop::NestingObserver:
+ void OnBeginNestedMessageLoop() override;
+
+ bool ShouldRepostEvent(const ui::Event& event, bool had_capture);
ui::PlatformWindowDelegate* delegate_;
mus::Window* mus_window_;
mus::mojom::ShowState show_state_;
mus::mojom::Cursor last_cursor_;
+ std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>
+ event_ack_callback_;
+
// True if OnWindowDestroyed() has been received.
bool mus_window_destroyed_;
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | ui/views/mus/platform_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698