blob: da0c2b837d1b78bbcdc2adc781438dc83771f1c5 [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 "ui/wm/core/masked_window_targeter.h"
class ChromeNativeAppWindowViews;
class ShapedAppWindowTargeter : public wm::MaskedWindowTargeter {
public:
ShapedAppWindowTargeter(aura::Window* window,
ChromeNativeAppWindowViews* app_window);
virtual ~ShapedAppWindowTargeter();
private:
// wm::MaskedWindowTargeter:
virtual bool GetHitTestMask(aura::Window* window,
gfx::Path* mask) const OVERRIDE;
ChromeNativeAppWindowViews* app_window_;
DISALLOW_COPY_AND_ASSIGN(ShapedAppWindowTargeter);
};
#endif // CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_