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

Side by Side Diff: chrome/browser/ui/views/apps/shaped_app_window_targeter_unittest.cc

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/apps/shaped_app_window_targeter.h" 5 #include "chrome/browser/ui/views/apps/shaped_app_window_targeter.h"
6 6
7 #include "chrome/browser/ui/views/apps/native_app_window_views.h" 7 #include "apps/ui/views/native_app_window_views.h"
8 #include "ui/aura/root_window.h" 8 #include "ui/aura/root_window.h"
9 #include "ui/aura/test/aura_test_base.h" 9 #include "ui/aura/test/aura_test_base.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/views/controls/webview/webview.h" 11 #include "ui/views/controls/webview/webview.h"
12 #include "ui/wm/public/easy_resize_window_targeter.h" 12 #include "ui/wm/public/easy_resize_window_targeter.h"
13 13
14 class ShapedAppWindowTargeterTest : public aura::test::AuraTestBase { 14 class ShapedAppWindowTargeterTest : public aura::test::AuraTestBase {
15 public: 15 public:
16 ShapedAppWindowTargeterTest() 16 ShapedAppWindowTargeterTest()
17 : web_view_(NULL) { 17 : web_view_(NULL) {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 app_window()->UpdateShape(scoped_ptr<SkRegion>()); 142 app_window()->UpdateShape(scoped_ptr<SkRegion>());
143 { 143 {
144 ui::MouseEvent move(ui::ET_MOUSE_MOVED, 144 ui::MouseEvent move(ui::ET_MOUSE_MOVED,
145 gfx::Point(10, 10), gfx::Point(10, 10), 145 gfx::Point(10, 10), gfx::Point(10, 10),
146 ui::EF_NONE, ui::EF_NONE); 146 ui::EF_NONE, ui::EF_NONE);
147 ui::EventDispatchDetails details = dispatcher()->OnEventFromSource(&move); 147 ui::EventDispatchDetails details = dispatcher()->OnEventFromSource(&move);
148 ASSERT_FALSE(details.dispatcher_destroyed); 148 ASSERT_FALSE(details.dispatcher_destroyed);
149 EXPECT_EQ(window, move.target()); 149 EXPECT_EQ(window, move.target());
150 } 150 }
151 } 151 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/shaped_app_window_targeter.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698