mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
b9ee476e8e
Cleanup using namespace statements as well
80 lines
2.5 KiB
C++
80 lines
2.5 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 "CefWrapper.h"
|
|
|
|
using namespace System::Threading::Tasks;
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Internals
|
|
{
|
|
public ref class CefBrowserHostWrapper : public IBrowserHost, public CefWrapper
|
|
{
|
|
private:
|
|
MCefRefPtr<CefBrowserHost> _browserHost;
|
|
|
|
double GetZoomLevelOnUI();
|
|
|
|
internal:
|
|
CefBrowserHostWrapper(CefRefPtr<CefBrowserHost> &browserHost) : _browserHost(browserHost)
|
|
{
|
|
}
|
|
|
|
!CefBrowserHostWrapper()
|
|
{
|
|
_browserHost = NULL;
|
|
}
|
|
|
|
~CefBrowserHostWrapper()
|
|
{
|
|
this->!CefBrowserHostWrapper();
|
|
|
|
_disposed = true;
|
|
}
|
|
|
|
public:
|
|
virtual void StartDownload(String^ url);
|
|
virtual void Print();
|
|
virtual Task<bool>^ PrintToPdfAsync(String^ path, PdfPrintSettings^ settings);
|
|
virtual void SetZoomLevel(double zoomLevel);
|
|
virtual Task<double>^ GetZoomLevelAsync();
|
|
virtual IntPtr GetWindowHandle();
|
|
virtual void CloseBrowser(bool forceClose);
|
|
|
|
virtual void ShowDevTools(IWindowInfo^ windowInfo, int inspectElementAtX, int inspectElementAtY);
|
|
virtual void CloseDevTools();
|
|
|
|
virtual void AddWordToDictionary(String^ word);
|
|
virtual void ReplaceMisspelling(String^ word);
|
|
|
|
virtual void Find(int identifier, String^ searchText, bool forward, bool matchCase, bool findNext);
|
|
virtual void StopFinding(bool clearSelection);
|
|
|
|
virtual void SetFocus(bool focus);
|
|
virtual void SendFocusEvent(bool setFocus);
|
|
virtual void SendKeyEvent(KeyEvent keyEvent);
|
|
|
|
virtual void SendMouseWheelEvent(int x, int y, int deltaX, int deltaY, CefEventFlags modifiers);
|
|
|
|
virtual void Invalidate(PaintElementType type);
|
|
|
|
virtual void SendMouseClickEvent(int x, int y, MouseButtonType mouseButtonType, bool mouseUp, int clickCount, CefEventFlags modifiers);
|
|
|
|
virtual void SendMouseMoveEvent(int x, int y, bool mouseLeave, CefEventFlags modifiers);
|
|
|
|
virtual property int WindowlessFrameRate
|
|
{
|
|
int get();
|
|
void set(int val);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|