Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / views / bubble / bubble_window_targeter.h
blob129a9cef06e88ce15a5a27f27829a6e7091af538
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
3 // found in the LICENSE file.
5 #include "ui/views/views_export.h"
6 #include "ui/wm/core/masked_window_targeter.h"
8 namespace aura {
9 class Window;
12 namespace views {
13 class BubbleDelegateView;
15 // A convenient window-targeter that uses a mask based on the content-bounds of
16 // the bubble-frame.
17 class VIEWS_EXPORT BubbleWindowTargeter
18 : public NON_EXPORTED_BASE(wm::MaskedWindowTargeter) {
19 public:
20 explicit BubbleWindowTargeter(BubbleDelegateView* bubble);
21 ~BubbleWindowTargeter() override;
23 private:
24 // wm::MaskedWindowTargeter:
25 bool GetHitTestMask(aura::Window* window, gfx::Path* mask) const override;
27 views::BubbleDelegateView* bubble_;
29 DISALLOW_COPY_AND_ASSIGN(BubbleWindowTargeter);
32 } // namespace views