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

Side by Side Diff: ui/wm/test/wm_test_helper.cc

Issue 191153004: Provide access to the WindowEventDispatcher as a ui::EventProcessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/wm/test/wm_test_helper.h" 5 #include "ui/wm/test/wm_test_helper.h"
6 6
7 #include "ui/aura/client/default_activation_client.h" 7 #include "ui/aura/client/default_activation_client.h"
8 #include "ui/aura/client/default_capture_client.h" 8 #include "ui/aura/client/default_capture_client.h"
9 #include "ui/aura/env.h" 9 #include "ui/aura/env.h"
10 #include "ui/aura/test/test_focus_client.h" 10 #include "ui/aura/test/test_focus_client.h"
11 #include "ui/aura/window.h"
11 #include "ui/views/corewm/compound_event_filter.h" 12 #include "ui/views/corewm/compound_event_filter.h"
12 #include "ui/views/corewm/input_method_event_filter.h" 13 #include "ui/views/corewm/input_method_event_filter.h"
13 14
14 namespace wm { 15 namespace wm {
15 16
16 WMTestHelper::WMTestHelper(const gfx::Size& default_window_size) { 17 WMTestHelper::WMTestHelper(const gfx::Size& default_window_size) {
17 aura::Env::CreateInstance(); 18 aura::Env::CreateInstance();
18 host_.reset(aura::WindowTreeHost::Create(gfx::Rect(default_window_size))); 19 host_.reset(aura::WindowTreeHost::Create(gfx::Rect(default_window_size)));
19 host_->InitHost(); 20 host_->InitHost();
20 aura::client::SetWindowTreeClient(host_->window(), this); 21 aura::client::SetWindowTreeClient(host_->window(), this);
(...skipping 21 matching lines...) Expand all
42 root_window_event_filter_->RemoveHandler(input_method_filter_.get()); 43 root_window_event_filter_->RemoveHandler(input_method_filter_.get());
43 } 44 }
44 45
45 aura::Window* WMTestHelper::GetDefaultParent(aura::Window* context, 46 aura::Window* WMTestHelper::GetDefaultParent(aura::Window* context,
46 aura::Window* window, 47 aura::Window* window,
47 const gfx::Rect& bounds) { 48 const gfx::Rect& bounds) {
48 return host_->window(); 49 return host_->window();
49 } 50 }
50 51
51 } // namespace wm 52 } // namespace wm
OLDNEW
« no previous file with comments | « ui/views/widget/widget_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698