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

Side by Side Diff: chrome/browser/ui/views/apps/shaped_app_window_targeter.cc

Issue 171003004: Extract Chrome-specific code from NativeAppWindowViews (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win, clang (split_native_app_window) Created 6 years, 10 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 | Annotate | Revision Log
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 "chrome/browser/ui/views/apps/shaped_app_window_targeter.h"
6
7 #include "chrome/browser/ui/views/apps/native_app_window_views.h"
8 #include "ui/gfx/path.h"
9
10 ShapedAppWindowTargeter::ShapedAppWindowTargeter(
11 aura::Window* window,
12 NativeAppWindowViews* app_window)
13 : wm::MaskedWindowTargeter(window),
14 app_window_(app_window) {
15 }
16
17 ShapedAppWindowTargeter::~ShapedAppWindowTargeter() {
18 }
19
20 bool ShapedAppWindowTargeter::GetHitTestMask(aura::Window* window,
21 gfx::Path* mask) const {
22 SkRegion* shape = app_window_->shape();
23 return shape ? shape->getBoundaryPath(mask) : false;
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698