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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc

Issue 9703068: Clip constrained windows to the tabcontents bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | ui/gfx/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc (revision 126769)
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc (working copy)
@@ -21,6 +21,7 @@
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/os_exchange_data.h"
#include "ui/base/dragdrop/os_exchange_data_provider_aura.h"
+#include "ui/gfx/compositor/layer.h"
#include "ui/views/views_delegate.h"
#include "ui/views/widget/widget.h"
#include "webkit/glue/webdropdata.h"
@@ -163,6 +164,7 @@
params.parent = NULL;
params.can_activate = true;
GetWidget()->Init(params);
+ GetNativeView()->layer()->SetMasksToBounds(true);
GetNativeWindow()->SetName("NativeTabContentsViewAura");
#if defined(USE_ASH)
ash::SetChildWindowVisibilityChangesAnimated(GetWidget()->GetNativeView());
« no previous file with comments | « no previous file | ui/gfx/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698