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

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

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/test/mus/test_window_manager_client.h ('k') | ui/aura/test/mus/test_window_tree_client_setup.h » ('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.cc
diff --git a/ui/aura/test/mus/test_window_manager_client.cc b/ui/aura/test/mus/test_window_manager_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..02fec597879c2a1c6ec337913c905bf00847d183
--- /dev/null
+++ b/ui/aura/test/mus/test_window_manager_client.cc
@@ -0,0 +1,69 @@
+// Copyright 2015 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.
+
+#include "ui/aura/test/mus/test_window_manager_client.h"
+
+namespace aura {
+
+TestWindowManagerClient::TestWindowManagerClient() {}
+
+TestWindowManagerClient::~TestWindowManagerClient() {}
+
+size_t TestWindowManagerClient::GetChangeCountForType(
+ WindowManagerClientChangeType type) {
+ size_t count = 0;
+ for (const auto change_type : changes_) {
+ if (change_type == type)
+ ++count;
+ }
+ return count;
+}
+
+void TestWindowManagerClient::AddActivationParent(Id transport_window_id) {
+ changes_.push_back(WindowManagerClientChangeType::ADD_ACTIVATION_PARENT);
+}
+
+void TestWindowManagerClient::RemoveActivationParent(Id transport_window_id) {}
+
+void TestWindowManagerClient::ActivateNextWindow() {}
+
+void TestWindowManagerClient::SetExtendedHitArea(Id window_id,
+ const gfx::Insets& hit_area) {}
+
+void TestWindowManagerClient::AddAccelerators(
+ std::vector<ui::mojom::WmAcceleratorPtr> accelerators,
+ const AddAcceleratorsCallback& callback) {}
+
+void TestWindowManagerClient::RemoveAccelerator(uint32_t id) {}
+
+void TestWindowManagerClient::SetDisplayRoot(
+ const display::Display& display,
+ ui::mojom::WmViewportMetricsPtr viewport_metrics,
+ bool is_primary_display,
+ Id window_id,
+ const SetDisplayRootCallback& callback) {}
+
+void TestWindowManagerClient::WmResponse(uint32_t change_id, bool response) {}
+
+void TestWindowManagerClient::WmSetBoundsResponse(uint32_t change_id) {}
+
+void TestWindowManagerClient::WmRequestClose(Id transport_window_id) {}
+
+void TestWindowManagerClient::WmSetFrameDecorationValues(
+ ui::mojom::FrameDecorationValuesPtr values) {}
+
+void TestWindowManagerClient::WmSetNonClientCursor(
+ uint32_t window_id,
+ ui::mojom::CursorType cursor_id) {}
+
+void TestWindowManagerClient::OnWmCreatedTopLevelWindow(
+ uint32_t change_id,
+ Id transport_window_id) {}
+
+void TestWindowManagerClient::OnAcceleratorAck(
+ uint32_t event_id,
+ ui::mojom::EventResult result,
+ const std::unordered_map<std::string, std::vector<uint8_t>>& properties) {}
+
+} // namespace aura
« no previous file with comments | « ui/aura/test/mus/test_window_manager_client.h ('k') | ui/aura/test/mus/test_window_tree_client_setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698