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

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

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize 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
« no previous file with comments | « services/ui/ws/platform_display_default.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
41 void Init(PlatformDisplayDelegate* delegate) override { 41 void Init(PlatformDisplayDelegate* delegate) override {
42 delegate->OnAcceleratedWidgetAvailable(); 42 delegate->OnAcceleratedWidgetAvailable();
43 } 43 }
44 void SetViewportSize(const gfx::Size& size) override {} 44 void SetViewportSize(const gfx::Size& size) override {}
45 void SetTitle(const base::string16& title) override {} 45 void SetTitle(const base::string16& title) override {}
46 void SetCapture() override {} 46 void SetCapture() override {}
47 void ReleaseCapture() override {} 47 void ReleaseCapture() override {}
48 void SetCursor(const ui::CursorData& cursor) override { 48 void SetCursor(const ui::CursorData& cursor) override {
49 *cursor_storage_ = cursor; 49 *cursor_storage_ = cursor;
50 } 50 }
51 void SetCursorSize(const ui::CursorSize& cursor_size) override {}
51 void MoveCursorTo(const gfx::Point& window_pixel_location) override {} 52 void MoveCursorTo(const gfx::Point& window_pixel_location) override {}
52 void UpdateTextInputState(const ui::TextInputState& state) override {} 53 void UpdateTextInputState(const ui::TextInputState& state) override {}
53 void SetImeVisibility(bool visible) override {} 54 void SetImeVisibility(bool visible) override {}
54 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override { 55 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override {
55 metrics_ = metrics; 56 metrics_ = metrics;
56 } 57 }
57 gfx::AcceleratedWidget GetAcceleratedWidget() const override { 58 gfx::AcceleratedWidget GetAcceleratedWidget() const override {
58 return gfx::kNullAcceleratedWidget; 59 return gfx::kNullAcceleratedWidget;
59 } 60 }
60 FrameGenerator* GetFrameGenerator() override { return nullptr; } 61 FrameGenerator* GetFrameGenerator() override { return nullptr; }
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 if (!tree->AddWindow(parent_client_id, client_window_id)) 754 if (!tree->AddWindow(parent_client_id, client_window_id))
754 return nullptr; 755 return nullptr;
755 if (client_id) 756 if (client_id)
756 *client_id = client_window_id; 757 *client_id = client_window_id;
757 return tree->GetWindowByClientId(client_window_id); 758 return tree->GetWindowByClientId(client_window_id);
758 } 759 }
759 760
760 } // namespace test 761 } // namespace test
761 } // namespace ws 762 } // namespace ws
762 } // namespace ui 763 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_default.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698