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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 22865036: Add support for reposting the ET_GESTURE_TAP_DOWN gesture event to the RootWindow and in the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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
Index: ui/views/win/hwnd_message_handler.h
===================================================================
--- ui/views/win/hwnd_message_handler.h (revision 218517)
+++ ui/views/win/hwnd_message_handler.h (working copy)
@@ -11,6 +11,7 @@
#include <windows.h>
#include <set>
+#include <vector>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -20,6 +21,7 @@
#include "base/strings/string16.h"
#include "base/win/win_util.h"
#include "ui/base/accessibility/accessibility_types.h"
+#include "ui/base/events/event.h"
#include "ui/base/ui_base_types.h"
#include "ui/base/win/window_impl.h"
#include "ui/gfx/rect.h"
@@ -364,6 +366,12 @@
void OnWindowPosChanging(WINDOWPOS* window_pos);
void OnWindowPosChanged(WINDOWPOS* window_pos);
+ typedef std::vector<ui::TouchEvent> TouchEvents;
+ // Helper to handle the list of touch events passed in. We need this because
+ // touch events on windows don't fire if we enter a modal loop in the context
+ // of a touch event.
+ void HandleTouchEvents(const TouchEvents& touch_events);
+
HWNDMessageHandlerDelegate* delegate_;
scoped_ptr<FullscreenHandler> fullscreen_handler_;
@@ -470,6 +478,9 @@
// A factory used to lookup appbar autohide edges.
base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_;
+ // A factory that allows us to process touch events asynchronously.
+ base::WeakPtrFactory<HWNDMessageHandler> touch_event_factory_;
+
DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
};

Powered by Google App Engine
This is Rietveld 408576698