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

Side by Side Diff: services/ui/ws/test_utils.cc

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Rebase and fix build issues. Created 3 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/ws/test_utils.h" 5 #include "services/ui/ws/test_utils.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override { 48 bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override {
49 if (metrics_ == metrics) 49 if (metrics_ == metrics)
50 return false; 50 return false;
51 metrics_ = metrics; 51 metrics_ = metrics;
52 return true; 52 return true;
53 } 53 }
54 gfx::AcceleratedWidget GetAcceleratedWidget() const override { 54 gfx::AcceleratedWidget GetAcceleratedWidget() const override {
55 return gfx::kNullAcceleratedWidget; 55 return gfx::kNullAcceleratedWidget;
56 } 56 }
57 FrameGenerator* GetFrameGenerator() override { return nullptr; } 57 FrameGenerator* GetFrameGenerator() override { return nullptr; }
58 EventSink* GetEventSink() override { return nullptr; }
58 59
59 private: 60 private:
60 display::ViewportMetrics metrics_; 61 display::ViewportMetrics metrics_;
61 mojom::Cursor* cursor_storage_; 62 mojom::Cursor* cursor_storage_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay); 64 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplay);
64 }; 65 };
65 66
66 ClientWindowId NextUnusedClientWindowId(WindowTree* tree) { 67 ClientWindowId NextUnusedClientWindowId(WindowTree* tree) {
67 ClientWindowId client_id; 68 ClientWindowId client_id;
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 if (!tree->AddWindow(parent_client_id, client_window_id)) 649 if (!tree->AddWindow(parent_client_id, client_window_id))
649 return nullptr; 650 return nullptr;
650 if (client_id) 651 if (client_id)
651 *client_id = client_window_id; 652 *client_id = client_window_id;
652 return tree->GetWindowByClientId(client_window_id); 653 return tree->GetWindowByClientId(client_window_id);
653 } 654 }
654 655
655 } // namespace test 656 } // namespace test
656 } // namespace ws 657 } // namespace ws
657 } // namespace ui 658 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698