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

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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Thread to the PlatformWindow. Created 3 years, 6 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 "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 28 matching lines...) Expand all
39 void Init(PlatformDisplayDelegate* delegate) override { 39 void Init(PlatformDisplayDelegate* delegate) override {
40 delegate->OnAcceleratedWidgetAvailable(); 40 delegate->OnAcceleratedWidgetAvailable();
41 } 41 }
42 void SetViewportSize(const gfx::Size& size) override {} 42 void SetViewportSize(const gfx::Size& size) override {}
43 void SetTitle(const base::string16& title) override {} 43 void SetTitle(const base::string16& title) override {}
44 void SetCapture() override {} 44 void SetCapture() override {}
45 void ReleaseCapture() override {} 45 void ReleaseCapture() override {}
46 void SetCursor(const ui::CursorData& cursor) override { 46 void SetCursor(const ui::CursorData& cursor) override {
47 *cursor_storage_ = cursor; 47 *cursor_storage_ = cursor;
48 } 48 }
49 void MoveCursorTo(const gfx::Point& window_pixel_location) override {}
49 void UpdateTextInputState(const ui::TextInputState& state) override {} 50 void UpdateTextInputState(const ui::TextInputState& state) override {}
50 void SetImeVisibility(bool visible) override {} 51 void SetImeVisibility(bool visible) override {}
51 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override { 52 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override {
52 metrics_ = metrics; 53 metrics_ = metrics;
53 } 54 }
54 gfx::AcceleratedWidget GetAcceleratedWidget() const override { 55 gfx::AcceleratedWidget GetAcceleratedWidget() const override {
55 return gfx::kNullAcceleratedWidget; 56 return gfx::kNullAcceleratedWidget;
56 } 57 }
57 FrameGenerator* GetFrameGenerator() override { return nullptr; } 58 FrameGenerator* GetFrameGenerator() override { return nullptr; }
58 EventSink* GetEventSink() override { return nullptr; } 59 EventSink* GetEventSink() override { return nullptr; }
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 if (!tree->AddWindow(parent_client_id, client_window_id)) 740 if (!tree->AddWindow(parent_client_id, client_window_id))
740 return nullptr; 741 return nullptr;
741 if (client_id) 742 if (client_id)
742 *client_id = client_window_id; 743 *client_id = client_window_id;
743 return tree->GetWindowByClientId(client_window_id); 744 return tree->GetWindowByClientId(client_window_id);
744 } 745 }
745 746
746 } // namespace test 747 } // namespace test
747 } // namespace ws 748 } // namespace ws
748 } // namespace ui 749 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698