| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h" |
| 6 |
| 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" |
| 9 |
| 10 namespace views { |
| 11 namespace { |
| 12 |
| 13 // Mus handles cursor, so this class need not do anything. |
| 14 class DesktopCursorLoaderUpdaterChromeos : public DesktopCursorLoaderUpdater { |
| 15 public: |
| 16 DesktopCursorLoaderUpdaterChromeos() {} |
| 17 ~DesktopCursorLoaderUpdaterChromeos() override {} |
| 18 |
| 19 // DesktopCursorLoaderUpdater: |
| 20 void OnCreate(float device_scale_factor, ui::CursorLoader* loader) override {} |
| 21 void OnDisplayUpdated(const display::Display& display, |
| 22 ui::CursorLoader* loader) override {} |
| 23 |
| 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(DesktopCursorLoaderUpdaterChromeos); |
| 26 }; |
| 27 |
| 28 } // namespace |
| 29 |
| 30 // static |
| 31 std::unique_ptr<DesktopCursorLoaderUpdater> |
| 32 DesktopCursorLoaderUpdater::Create() { |
| 33 std::unique_ptr<DesktopCursorLoaderUpdaterChromeos> loader = |
| 34 base::MakeUnique<DesktopCursorLoaderUpdaterChromeos>(); |
| 35 return std::move(loader); |
| 36 } |
| 37 |
| 38 } // namespace views |
| OLD | NEW |