root/chrome/browser/ui/views/apps/shaped_app_window_targeter.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// 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_

/* [<][>][^][v][top][bottom][index][help] */