diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 04:48:20 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 04:48:20 +0000 |
commit | f3b1efde59da33105edd6da4ee00c3c50f401a7f (patch) | |
tree | b03c78f05efe16eaf0fedee582c0b6c9f69a0c47 /ui/snapshot | |
parent | 946cdb61e3aa5f6b7c1c8b4f143ca9099e50ccf9 (diff) | |
download | chromium_src-f3b1efde59da33105edd6da4ee00c3c50f401a7f.zip chromium_src-f3b1efde59da33105edd6da4ee00c3c50f401a7f.tar.gz chromium_src-f3b1efde59da33105edd6da4ee00c3c50f401a7f.tar.bz2 |
Move DefaultActivationClient to wm/core
Several tests are using AuraTestHelper and were relying on it to set up the DefaultActivationClient, so I had to have them instantiate the DAC directly after calling SetUp() on the helper. I also had to make the DAC delete itself after the root window it's bound to is destroyed.
R=sky@chromium.org
http://crbug.com/308710
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266616
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266975
Review URL: https://codereview.chromium.org/250113002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267065 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/snapshot')
-rw-r--r-- | ui/snapshot/DEPS | 1 | ||||
-rw-r--r-- | ui/snapshot/snapshot.gyp | 1 | ||||
-rw-r--r-- | ui/snapshot/snapshot_aura_unittest.cc | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/ui/snapshot/DEPS b/ui/snapshot/DEPS index 08ad30c..f6768d1 100644 --- a/ui/snapshot/DEPS +++ b/ui/snapshot/DEPS @@ -8,4 +8,5 @@ include_rules = [ "+ui/compositor", "+ui/gfx", "+ui/gl", + "+ui/wm", ] diff --git a/ui/snapshot/snapshot.gyp b/ui/snapshot/snapshot.gyp index 1f0c645..e34b0c2 100644 --- a/ui/snapshot/snapshot.gyp +++ b/ui/snapshot/snapshot.gyp @@ -68,6 +68,7 @@ '../aura/aura.gyp:aura_test_support', '../compositor/compositor.gyp:compositor', '../compositor/compositor.gyp:compositor_test_support', + '../wm/wm.gyp:wm', ], }], # See http://crbug.com/162998#c4 for why this is needed. diff --git a/ui/snapshot/snapshot_aura_unittest.cc b/ui/snapshot/snapshot_aura_unittest.cc index b000ad1..eee20b3 100644 --- a/ui/snapshot/snapshot_aura_unittest.cc +++ b/ui/snapshot/snapshot_aura_unittest.cc @@ -23,6 +23,7 @@ #include "ui/gfx/size_conversions.h" #include "ui/gfx/transform.h" #include "ui/gl/gl_implementation.h" +#include "ui/wm/core/default_activation_client.h" namespace ui { namespace { @@ -93,6 +94,7 @@ class SnapshotAuraTest : public testing::Test { helper_.reset( new aura::test::AuraTestHelper(base::MessageLoopForUI::current())); helper_->SetUp(); + new ::wm::DefaultActivationClient(helper_->root_window()); } virtual void TearDown() OVERRIDE { |