// Copyright (c) 2015 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_WINDOW_HANDLER_H_ #define JCEF_NATIVE_WINDOW_HANDLER_H_ #pragma once #include #include "include/cef_base.h" #include "include/cef_browser.h" #include "util.h" // WindowHandler implementation. class WindowHandler : public CefBase { public: WindowHandler(JNIEnv* env, jobject handler); virtual ~WindowHandler(); // WindowHandler methods bool GetRect(CefRefPtr browser, CefRect& rect); bool GetRect(jobject browser, CefRect& rect); void OnMouseEvent(CefRefPtr browser, int mouseEvent, int absX, int absY, int modifier, int button); protected: jobject jhandler_; // Include the default reference counting implementation. IMPLEMENT_REFCOUNTING(WindowHandler); }; #endif // JCEF_NATIVE_WINDOW_HANDLER_H_