mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
72b1bcab49
Fix up incorrect namespaces (move to Internals)
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "Stdafx.h"
|
|
|
|
#include "include\cef_geolocation_handler.h"
|
|
|
|
#include "CefWrapper.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Internals
|
|
{
|
|
public ref class CefGeolocationCallbackWrapper : public IGeolocationCallback, public CefWrapper
|
|
{
|
|
private:
|
|
MCefRefPtr<CefGeolocationCallback> _callback;
|
|
|
|
public:
|
|
CefGeolocationCallbackWrapper(CefRefPtr<CefGeolocationCallback> &callback)
|
|
: _callback(callback)
|
|
{
|
|
}
|
|
|
|
!CefGeolocationCallbackWrapper()
|
|
{
|
|
_callback = NULL;
|
|
}
|
|
|
|
~CefGeolocationCallbackWrapper()
|
|
{
|
|
this->!CefGeolocationCallbackWrapper();
|
|
|
|
_disposed = true;
|
|
}
|
|
|
|
virtual void Continue(bool allow)
|
|
{
|
|
ThrowIfDisposed();
|
|
|
|
_callback->Continue(allow);
|
|
|
|
delete this;
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|