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

Side by Side Diff: ui/aura/test/mus/test_window_manager_client.h

Issue 2843193002: chromeos: fix focus for mushrome (Closed)
Patch Set: feedback Created 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
6 #define UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
7
8 #include <stdint.h>
9
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "services/ui/public/interfaces/window_manager.mojom.h"
14 #include "ui/aura/mus/mus_types.h"
15
16 namespace aura {
17
18 enum class WindowManagerClientChangeType {
19 ADD_ACTIVATION_PARENT,
20 };
21
22 // WindowManagerClient implementation for tests.
23 class TestWindowManagerClient : public ui::mojom::WindowManagerClient {
24 public:
25 TestWindowManagerClient();
26 ~TestWindowManagerClient() override;
27
28 size_t GetChangeCountForType(WindowManagerClientChangeType type);
29
30 private:
31 // ui::mojom::WindowManagerClient:
32 void AddActivationParent(Id transport_window_id) override;
33 void RemoveActivationParent(Id transport_window_id) override;
34 void ActivateNextWindow() override;
35 void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override;
36 void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators,
37 const AddAcceleratorsCallback& callback) override;
38 void RemoveAccelerator(uint32_t id) override;
39 void SetDisplayRoot(const display::Display& display,
40 ui::mojom::WmViewportMetricsPtr viewport_metrics,
41 bool is_primary_display,
42 Id window_id,
43 const SetDisplayRootCallback& callback) override;
44 void WmResponse(uint32_t change_id, bool response) override;
45 void WmSetBoundsResponse(uint32_t change_id) override;
46 void WmRequestClose(Id transport_window_id) override;
47 void WmSetFrameDecorationValues(
48 ui::mojom::FrameDecorationValuesPtr values) override;
49 void WmSetNonClientCursor(uint32_t window_id,
50 ui::mojom::CursorType cursor_id) override;
51 void OnWmCreatedTopLevelWindow(uint32_t change_id,
52 Id transport_window_id) override;
53 void OnAcceleratorAck(
54 uint32_t event_id,
55 ui::mojom::EventResult result,
56 const std::unordered_map<std::string, std::vector<uint8_t>>& properties)
57 override;
58
59 std::vector<WindowManagerClientChangeType> changes_;
60
61 DISALLOW_COPY_AND_ASSIGN(TestWindowManagerClient);
62 };
63
64 } // namespace aura
65
66 #endif // UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
OLDNEW
« 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