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

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: Fix typo in X11 patch Created 7 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9b3950f0c950cbcbb101c15d700534335ed86be8..4bad172cc08693f134f82d9aad05c09698cebe54 100644
--- a/chrome/browser/ui/views/apps/native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/native_app_window_views.cc
@@ -843,6 +843,13 @@ SkRegion* NativeAppWindowViews::GetDraggableRegion() {
void NativeAppWindowViews::UpdateInputRegion(scoped_ptr<SkRegion> region) {
input_region_ = region.Pass();
+
+#if defined(USE_AURA)
+ if (input_region_)
+ window_->SetShape(new SkRegion(*input_region_));
+ else
+ window_->SetShape(NULL);
+#endif // defined(USE_AURA)
}
void NativeAppWindowViews::HandleKeyboardEvent(
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698