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

Unified Diff: components/exo/touch_unittest.cc

Issue 2162193003: Separates out accelerators using non-common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@accelerators
Patch Set: sim=20 Created 4 years, 5 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 | « components/exo/pointer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/touch_unittest.cc
diff --git a/components/exo/touch_unittest.cc b/components/exo/touch_unittest.cc
index 40595f713be1a70d1c7f58d1d8700e7b36b7951d..a1fd44180ed5cb828e44050fe9e12f9fc1f97339 100644
--- a/components/exo/touch_unittest.cc
+++ b/components/exo/touch_unittest.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ash/aura/wm_window_aura.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/window_positioner.h"
+#include "ash/common/wm/window_positioning_utils.h"
#include "ash/common/wm_shell.h"
#include "ash/shell.h"
-#include "ash/wm/window_util.h"
#include "components/exo/buffer.h"
#include "components/exo/shell_surface.h"
#include "components/exo/surface.h"
@@ -49,7 +50,8 @@ TEST_F(TouchTest, OnTouchDown) {
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(bottom_buffer_size)));
bottom_surface->Attach(bottom_buffer.get());
bottom_surface->Commit();
- ash::wm::CenterWindow(bottom_shell_surface->GetWidget()->GetNativeWindow());
+ ash::wm::CenterWindow(ash::WmWindowAura::Get(
+ bottom_shell_surface->GetWidget()->GetNativeWindow()));
std::unique_ptr<Surface> top_surface(new Surface);
std::unique_ptr<ShellSurface> top_shell_surface(
@@ -59,7 +61,8 @@ TEST_F(TouchTest, OnTouchDown) {
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(top_buffer_size)));
top_surface->Attach(top_buffer.get());
top_surface->Commit();
- ash::wm::CenterWindow(top_shell_surface->GetWidget()->GetNativeWindow());
+ ash::wm::CenterWindow(ash::WmWindowAura::Get(
+ top_shell_surface->GetWidget()->GetNativeWindow()));
MockTouchDelegate delegate;
std::unique_ptr<Touch> touch(new Touch(&delegate));
@@ -212,7 +215,7 @@ TEST_F(TouchTest, IgnoreTouchEventDuringModal) {
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(gfx::Size(5, 5))));
surface2->Attach(buffer2.get());
surface2->Commit();
- ash::wm::CenterWindow(surface2->window());
+ ash::wm::CenterWindow(ash::WmWindowAura::Get(surface2->window()));
gfx::Point location2 = surface2->window()->GetBoundsInScreen().origin();
// Make the window modal.
« no previous file with comments | « components/exo/pointer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698