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

Unified Diff: chrome/browser/ui/views/apps/native_app_window_views.cc

Issue 54983005: Plumb native AppWindow input region through to window shape under Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/apps/native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/native_app_window_views.cc b/chrome/browser/ui/views/apps/native_app_window_views.cc
index 42a543b0a8b66321e456cfe772163b26465d8f38..13709194ebb4148b04ac61ec3aba21bfa2f19d11 100644
--- a/chrome/browser/ui/views/apps/native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/native_app_window_views.cc
@@ -807,6 +807,13 @@ SkRegion* NativeAppWindowViews::GetDraggableRegion() {
void NativeAppWindowViews::UpdateInputRegion(scoped_ptr<SkRegion> region) {
input_region_ = region.Pass();
+
+#if defined(USE_AURA)
Ben Goodger (Google) 2013/11/01 16:39:47 is there a reason this has to be USE_AURA? It shou
Wez 2013/11/01 19:59:33 UpdateInputRegion() takes scoped_ptr<SkRegion>, wh
+ if (input_region_)
+ window_->SetShape(new SkRegion(*input_region_));
+ else
+ window_->SetShape(NULL);
+#endif // defined(USE_AURA)
}
void NativeAppWindowViews::HandleKeyboardEvent(

Powered by Google App Engine
This is Rietveld 408576698