blob: fd9550fcd6e1cda5118032c0b33edd507e9176a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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.
#include "base/macros.h"
#include "ui/views/views_export.h"
#include "ui/wm/core/masked_window_targeter.h"
namespace aura {
class Window;
}
namespace views {
class BubbleDelegateView;
// A convenient window-targeter that uses a mask based on the content-bounds of
// the bubble-frame.
class VIEWS_EXPORT BubbleWindowTargeter
: public NON_EXPORTED_BASE(wm::MaskedWindowTargeter) {
public:
explicit BubbleWindowTargeter(BubbleDelegateView* bubble);
~BubbleWindowTargeter() override;
private:
// wm::MaskedWindowTargeter:
bool GetHitTestMask(aura::Window* window, gfx::Path* mask) const override;
views::BubbleDelegateView* bubble_;
DISALLOW_COPY_AND_ASSIGN(BubbleWindowTargeter);
};
} // namespace views
|