chromium/components/remote_cocoa/browser/ns_view_ids.h

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

#ifndef COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_
#define COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_

#include <stdint.h>

#include "components/remote_cocoa/browser/remote_cocoa_browser_export.h"

namespace remote_cocoa {

constexpr uint64_t kInvalidNSViewId = 0;

// Return a new unique is to be used with ScopedNSViewIdMapping and
// GetNSViewFromId in various app shim processes.
uint64_t REMOTE_COCOA_BROWSER_EXPORT GetNewNSViewId();

}  // namespace remote_cocoa

#endif  // COMPONENTS_REMOTE_COCOA_BROWSER_NS_VIEW_IDS_H_