// Copyright © 2010-2013 The CefSharp Project. 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" using namespace System; namespace CefSharp { /// /// Event arguments to the ConsoleMessage event handler set up in IWebBrowser. /// public ref class ConsoleMessageEventArgs : EventArgs { private: String^ _message; String^ _source; int _line; internal: ConsoleMessageEventArgs(String^ message, String^ source, int line) : _message(message), _source(source), _line(line) {} public: /// /// The message text of the console message. /// property String^ Message { String^ get() { return _message; } } /// /// The source of the console message. /// property String^ Source { String^ get() { return _source; } } /// /// The line number that generated the console message. /// property int Line { int get() { return _line; } } }; /// /// A delegate type used to listen to ConsoleMessage events. /// public delegate void ConsoleMessageEventHandler(Object^ sender, ConsoleMessageEventArgs^ e); }