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

Unified Diff: ui/aura/test/mus/test_window_manager_client.h

Issue 2843193002: chromeos: fix focus for mushrome (Closed)
Patch Set: feedback Created 3 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 | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/test/mus/test_window_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/mus/test_window_manager_client.h
diff --git a/ui/aura/test/mus/test_window_manager_client.h b/ui/aura/test/mus/test_window_manager_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..a68bb3998405ae846a5341ee52e200959c36ff21
--- /dev/null
+++ b/ui/aura/test/mus/test_window_manager_client.h
@@ -0,0 +1,66 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
+#define UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
+
+#include <stdint.h>
+
+#include <vector>
+
+#include "base/macros.h"
+#include "services/ui/public/interfaces/window_manager.mojom.h"
+#include "ui/aura/mus/mus_types.h"
+
+namespace aura {
+
+enum class WindowManagerClientChangeType {
+ ADD_ACTIVATION_PARENT,
+};
+
+// WindowManagerClient implementation for tests.
+class TestWindowManagerClient : public ui::mojom::WindowManagerClient {
+ public:
+ TestWindowManagerClient();
+ ~TestWindowManagerClient() override;
+
+ size_t GetChangeCountForType(WindowManagerClientChangeType type);
+
+ private:
+ // ui::mojom::WindowManagerClient:
+ void AddActivationParent(Id transport_window_id) override;
+ void RemoveActivationParent(Id transport_window_id) override;
+ void ActivateNextWindow() override;
+ void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override;
+ void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators,
+ const AddAcceleratorsCallback& callback) override;
+ void RemoveAccelerator(uint32_t id) override;
+ void SetDisplayRoot(const display::Display& display,
+ ui::mojom::WmViewportMetricsPtr viewport_metrics,
+ bool is_primary_display,
+ Id window_id,
+ const SetDisplayRootCallback& callback) override;
+ void WmResponse(uint32_t change_id, bool response) override;
+ void WmSetBoundsResponse(uint32_t change_id) override;
+ void WmRequestClose(Id transport_window_id) override;
+ void WmSetFrameDecorationValues(
+ ui::mojom::FrameDecorationValuesPtr values) override;
+ void WmSetNonClientCursor(uint32_t window_id,
+ ui::mojom::CursorType cursor_id) override;
+ void OnWmCreatedTopLevelWindow(uint32_t change_id,
+ Id transport_window_id) override;
+ void OnAcceleratorAck(
+ uint32_t event_id,
+ ui::mojom::EventResult result,
+ const std::unordered_map<std::string, std::vector<uint8_t>>& properties)
+ override;
+
+ std::vector<WindowManagerClientChangeType> changes_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestWindowManagerClient);
+};
+
+} // namespace aura
+
+#endif // UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/test/mus/test_window_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698