| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_ |
| 7 | 7 |
| 8 #include "ui/wm/public/masked_window_targeter.h" | 8 #include "ui/wm/core/masked_window_targeter.h" |
| 9 | 9 |
| 10 class ChromeNativeAppWindowViews; | 10 class ChromeNativeAppWindowViews; |
| 11 | 11 |
| 12 class ShapedAppWindowTargeter : public wm::MaskedWindowTargeter { | 12 class ShapedAppWindowTargeter : public wm::MaskedWindowTargeter { |
| 13 public: | 13 public: |
| 14 ShapedAppWindowTargeter(aura::Window* window, | 14 ShapedAppWindowTargeter(aura::Window* window, |
| 15 ChromeNativeAppWindowViews* app_window); | 15 ChromeNativeAppWindowViews* app_window); |
| 16 virtual ~ShapedAppWindowTargeter(); | 16 virtual ~ShapedAppWindowTargeter(); |
| 17 | 17 |
| 18 private: | 18 private: |
| 19 // wm::MaskedWindowTargeter: | 19 // wm::MaskedWindowTargeter: |
| 20 virtual bool GetHitTestMask(aura::Window* window, | 20 virtual bool GetHitTestMask(aura::Window* window, |
| 21 gfx::Path* mask) const OVERRIDE; | 21 gfx::Path* mask) const OVERRIDE; |
| 22 | 22 |
| 23 ChromeNativeAppWindowViews* app_window_; | 23 ChromeNativeAppWindowViews* app_window_; |
| 24 | 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(ShapedAppWindowTargeter); | 25 DISALLOW_COPY_AND_ASSIGN(ShapedAppWindowTargeter); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 #endif // CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_ | 28 #endif // CHROME_BROWSER_UI_VIEWS_APPS_SHAPED_APP_WINDOW_TARGETER_H_ |
| OLD | NEW |