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

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

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/bubble/bubble_window_targeter.h"
6
7 #include "ui/aura/window.h"
8 #include "ui/gfx/path.h"
9 #include "ui/gfx/skia_util.h"
10 #include "ui/views/bubble/bubble_delegate.h"
11 #include "ui/views/bubble/bubble_frame_view.h"
12
13 namespace views {
14
15 BubbleWindowTargeter::BubbleWindowTargeter(BubbleDelegateView* bubble)
16 : wm::MaskedWindowTargeter(bubble->GetWidget()->GetNativeView()),
17 bubble_(bubble) {
18 }
19
20 BubbleWindowTargeter::~BubbleWindowTargeter() {
21 }
22
23 bool BubbleWindowTargeter::GetHitTestMask(aura::Window* window,
24 gfx::Path* mask) const {
25 mask->addRect(
26 gfx::RectToSkRect(bubble_->GetBubbleFrameView()->GetContentsBounds()));
27 return true;
28 }
29
30 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_window_targeter.h ('k') | ui/views/bubble/bubble_window_targeter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698