// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #ifndef JCEF_NATIVE_FOCUS_HANDLER_H_ #define JCEF_NATIVE_FOCUS_HANDLER_H_ #pragma once #include #include "include/cef_focus_handler.h" // FocusHandler implementation. class FocusHandler : public CefFocusHandler { public: FocusHandler(JNIEnv* env, jobject handler); virtual ~FocusHandler(); // CefFocusHandler methods virtual void OnTakeFocus(CefRefPtr browser, bool next) OVERRIDE; virtual bool OnSetFocus(CefRefPtr browser, FocusSource source) OVERRIDE; virtual void OnGotFocus(CefRefPtr browser) OVERRIDE; protected: jobject jhandler_; // Include the default reference counting implementation. IMPLEMENT_REFCOUNTING(FocusHandler); }; #endif // JCEF_NATIVE_FOCUS_HANDLER_H_