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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.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: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
index 2dad0d94795fcbf6f6cd01ea1fff1d1b19e965ff..066e33a865c0529abff62871e37d3cef2339f6eb 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
@@ -233,9 +233,15 @@ gfx::Rect DesktopRootWindowHostWin::GetWorkAreaBoundsInScreen() const {
}
void DesktopRootWindowHostWin::SetShape(gfx::NativeRegion native_region) {
- SkPath path;
- native_region->getBoundaryPath(&path);
- message_handler_->SetRegion(gfx::CreateHRGNFromSkPath(path));
+ if (native_region) {
+ SkPath path;
+ native_region->getBoundaryPath(&path);
+ message_handler_->SetRegion(gfx::CreateHRGNFromSkPath(path));
+ } else {
+ message_handler_->SetRegion(NULL);
+ }
+
+ delete native_region;
Ben Goodger (Google) 2013/11/03 05:12:05 was this called for by the method docs? if not, ca
Wez 2013/11/03 23:52:02 The method has no docs (see https://code.google.co
}
void DesktopRootWindowHostWin::Activate() {

Powered by Google App Engine
This is Rietveld 408576698