Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: ui/views/bubble/bubble_window_targeter.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "ui/views/views_export.h"
6 #include "ui/wm/core/masked_window_targeter.h"
7
8 namespace aura {
9 class Window;
10 }
11
12 namespace views {
13 class BubbleDelegateView;
14
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 virtual ~BubbleWindowTargeter();
22
23 private:
24 // wm::MaskedWindowTargeter:
25 virtual bool GetHitTestMask(aura::Window* window,
26 gfx::Path* mask) const override;
27
28 views::BubbleDelegateView* bubble_;
29
30 DISALLOW_COPY_AND_ASSIGN(BubbleWindowTargeter);
31 };
32
33 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_frame_view_unittest.cc ('k') | ui/views/bubble/bubble_window_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698