blob: be504f3dc896b0156724102f56f3e8e674af9b9e [file] [log] [blame]
// Copyright 2014 The Chromium 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 CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_
#define CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_
#include "base/macros.h"
#include "ui/aura/window_targeter.h"
class ChromeNativeAppWindowViews;
class ShapedAppWindowTargeter : public aura::WindowTargeter {
public:
explicit ShapedAppWindowTargeter(ChromeNativeAppWindowViews* app_window);
ShapedAppWindowTargeter(const ShapedAppWindowTargeter&) = delete;
ShapedAppWindowTargeter& operator=(const ShapedAppWindowTargeter&) = delete;
~ShapedAppWindowTargeter() override;
private:
// aura::WindowTargeter:
std::unique_ptr<aura::WindowTargeter::HitTestRects> GetExtraHitTestShapeRects(
aura::Window* target) const override;
ChromeNativeAppWindowViews* app_window_;
};
#endif // CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_