mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
d33c41ec5d
No need to wrap bool in gcroot Move command line parsing into c# land - can be reused in a few places. Reduce code duplication in OnProcessMessageReceived - kOnFocusedNodeChanged handler Minor changes for code consistency/formatting
19 lines
613 B
C#
19 lines
613 B
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.
|
|
|
|
using System;
|
|
|
|
namespace CefSharp.Example
|
|
{
|
|
public class RenderProcessMessageHandler : IRenderProcessMessageHandler
|
|
{
|
|
void IRenderProcessMessageHandler.OnFocusedNodeChanged(IWebBrowser browserControl, IBrowser browser, IFrame frame, IDomNode node)
|
|
{
|
|
var message = node == null ? "lost focus" : node.ToString();
|
|
|
|
Console.WriteLine("OnFocusedNodeChanged() - " + message);
|
|
}
|
|
}
|
|
}
|