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

Unified Diff: components/mus/public/cpp/tests/window_tree_client_impl_private.h

Issue 1994223003: views/mus: Add a test to verify that Widget receives events correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/mus/public/cpp/tests/window_tree_client_impl_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/tests/window_tree_client_impl_private.h
diff --git a/components/mus/public/cpp/tests/window_tree_client_impl_private.h b/components/mus/public/cpp/tests/window_tree_client_impl_private.h
index c1544aee444eca2c6df6d534fd2e1609ce133cbe..bc89df687aab2fef81e4519455959654af60bdba 100644
--- a/components/mus/public/cpp/tests/window_tree_client_impl_private.h
+++ b/components/mus/public/cpp/tests/window_tree_client_impl_private.h
@@ -9,17 +9,23 @@
#include "base/macros.h"
+namespace ui {
+class Event;
+}
+
namespace mus {
namespace mojom {
class WindowTree;
}
+class Window;
class WindowTreeClientImpl;
// Use to access implementation details of WindowTreeClientImpl.
class WindowTreeClientImplPrivate {
public:
explicit WindowTreeClientImplPrivate(WindowTreeClientImpl* tree_client_impl);
+ explicit WindowTreeClientImplPrivate(Window* window);
~WindowTreeClientImplPrivate();
uint32_t event_observer_id();
@@ -27,6 +33,9 @@ class WindowTreeClientImplPrivate {
// Calls OnEmbed() on the WindowTreeClientImpl.
void OnEmbed(mojom::WindowTree* window_tree);
+ // Pretends that |event| has been received from the window server.
+ void PretendReceiveEvent(Window* window, const ui::Event& event);
sky 2016/05/19 20:58:23 How about following the convention of OnEmbed and
sadrul 2016/05/19 21:52:35 Renamed to CallOnWindowInputEvent.
+
private:
WindowTreeClientImpl* tree_client_impl_;
« no previous file with comments | « no previous file | components/mus/public/cpp/tests/window_tree_client_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698