chromium/ui/wm/core/cursor_manager.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/wm/core/cursor_manager.h"

#include <utility>

#include "base/check_op.h"
#include "base/observer_list.h"
#include "base/trace_event/trace_event.h"
#include "ui/aura/client/cursor_client_observer.h"
#include "ui/base/cursor/cursor_size.h"
#include "ui/base/cursor/mojom/cursor_type.mojom-shared.h"
#include "ui/wm/core/native_cursor_manager.h"
#include "ui/wm/core/native_cursor_manager_delegate.h"

namespace wm {

namespace internal {

// Represents the cursor state which is composed of cursor type, visibility, and
// mouse events enable state. When mouse events are disabled, the cursor is
// always invisible.
class CursorState {};

}  // namespace internal

bool CursorManager::last_cursor_visibility_state_ =;

CursorManager::CursorManager(std::unique_ptr<NativeCursorManager> delegate)
    :{}

CursorManager::~CursorManager() {}

// static
void CursorManager::ResetCursorVisibilityStateForTest() {}

void CursorManager::SetCursor(gfx::NativeCursor cursor) {}

gfx::NativeCursor CursorManager::GetCursor() const {}

void CursorManager::SetCursorForced(gfx::NativeCursor cursor) {}

void CursorManager::ShowCursor() {}

void CursorManager::HideCursor() {}

bool CursorManager::IsCursorVisible() const {}

void CursorManager::SetCursorSize(ui::CursorSize cursor_size) {}

ui::CursorSize CursorManager::GetCursorSize() const {}

void CursorManager::EnableMouseEvents() {}

void CursorManager::DisableMouseEvents() {}

bool CursorManager::IsMouseEventsEnabled() const {}

void CursorManager::SetDisplay(const display::Display& display) {}

const display::Display& CursorManager::GetDisplay() const {}

void CursorManager::LockCursor() {}

void CursorManager::UnlockCursor() {}

bool CursorManager::IsCursorLocked() const {}

void CursorManager::AddObserver(
    aura::client::CursorClientObserver* observer) {}

void CursorManager::RemoveObserver(
    aura::client::CursorClientObserver* observer) {}

bool CursorManager::ShouldHideCursorOnKeyEvent(
    const ui::KeyEvent& event) const {}

bool CursorManager::ShouldHideCursorOnTouchEvent(
    const ui::TouchEvent& event) const {}

void CursorManager::CommitCursor(gfx::NativeCursor cursor) {}

void CursorManager::CommitVisibility(bool visible) {}

void CursorManager::CommitCursorSize(ui::CursorSize cursor_size) {}

void CursorManager::CommitMouseEventsEnabled(bool enabled) {}

gfx::Size CursorManager::GetSystemCursorSize() const {}

void CursorManager::CommitSystemCursorSize(
    const gfx::Size& system_cursor_size) {}

void CursorManager::SetCursorImpl(gfx::NativeCursor cursor, bool forced) {}

}  // namespace wm