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

Side by Side Diff: ash/wm/toplevel_window_event_filter_unittest.cc

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 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
« no previous file with comments | « ash/wm/toplevel_window_event_filter.cc ('k') | ash/wm/window_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ash/wm/toplevel_window_event_filter.h"
6 #include "ash/wm/window_util.h"
5 #include "base/basictypes.h" 7 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
7 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/aura/event.h" 10 #include "ui/aura/event.h"
9 #include "ui/aura/root_window.h" 11 #include "ui/aura/root_window.h"
10 #include "ui/aura/test/aura_test_base.h" 12 #include "ui/aura/test/aura_test_base.h"
11 #include "ui/aura/test/event_generator.h" 13 #include "ui/aura/test/event_generator.h"
12 #include "ui/aura/test/test_window_delegate.h" 14 #include "ui/aura/test/test_window_delegate.h"
13 #include "ui/aura_shell/toplevel_window_event_filter.h"
14 #include "ui/aura_shell/window_util.h"
15 #include "ui/base/hit_test.h" 15 #include "ui/base/hit_test.h"
16 #include "ui/gfx/screen.h" 16 #include "ui/gfx/screen.h"
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 // Windows headers define macros for these function names which screw with us. 19 // Windows headers define macros for these function names which screw with us.
20 #if defined(CreateWindow) 20 #if defined(CreateWindow)
21 #undef CreateWindow 21 #undef CreateWindow
22 #endif 22 #endif
23 #endif 23 #endif
24 24
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 generator.DoubleClickLeftButton(); 315 generator.DoubleClickLeftButton();
316 316
317 EXPECT_TRUE(IsWindowMaximized(w1.get())); 317 EXPECT_TRUE(IsWindowMaximized(w1.get()));
318 generator.DoubleClickLeftButton(); 318 generator.DoubleClickLeftButton();
319 319
320 EXPECT_FALSE(IsWindowMaximized(w1.get())); 320 EXPECT_FALSE(IsWindowMaximized(w1.get()));
321 } 321 }
322 322
323 } // namespace test 323 } // namespace test
324 } // namespace aura 324 } // namespace aura
OLDNEW
« no previous file with comments | « ash/wm/toplevel_window_event_filter.cc ('k') | ash/wm/window_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698