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

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

Issue 2843193002: chromeos: fix focus for mushrome (Closed)
Patch Set: cleanup 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
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 struct Change {
msw 2017/04/26 23:01:08 nit: remove struct if it won't be expanded imminen
sky 2017/04/26 23:30:28 Done.
32 WindowManagerClientChangeType type;
33 };
34
35 // ui::mojom::WindowManagerClient:
36 void AddAccelerators(std::vector<ui::mojom::WmAcceleratorPtr> accelerators,
msw 2017/04/26 23:01:09 nit: match order with interface in window_manager.
sky 2017/04/26 23:30:28 Done.
37 const AddAcceleratorsCallback& callback) override;
38 void RemoveAccelerator(uint32_t id) override;
39 void AddActivationParent(Id transport_window_id) override;
40 void RemoveActivationParent(Id transport_window_id) override;
41 void ActivateNextWindow() override;
42 void SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) override;
43 void SetDisplayRoot(const display::Display& display,
44 ui::mojom::WmViewportMetricsPtr viewport_metrics,
45 bool is_primary_display,
46 Id window_id,
47 const SetDisplayRootCallback& callback) override;
48 void WmResponse(uint32_t change_id, bool response) override;
49 void WmSetBoundsResponse(uint32_t change_id) override;
50 void WmRequestClose(Id transport_window_id) override;
51 void WmSetFrameDecorationValues(
52 ui::mojom::FrameDecorationValuesPtr values) override;
53 void WmSetNonClientCursor(uint32_t window_id,
54 ui::mojom::CursorType cursor_id) override;
55 void OnWmCreatedTopLevelWindow(uint32_t change_id,
56 Id transport_window_id) override;
57 void OnAcceleratorAck(
58 uint32_t event_id,
59 ui::mojom::EventResult result,
60 const std::unordered_map<std::string, std::vector<uint8_t>>& properties)
61 override;
62
63 std::vector<Change> changes_;
64
65 DISALLOW_COPY_AND_ASSIGN(TestWindowManagerClient);
66 };
67
68 } // namespace aura
69
70 #endif // UI_AURA_TEST_MUS_TEST_WINDOW_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698