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

Side by Side Diff: ui/views/event_utils_aura.cc

Issue 196383014: Remove window/host accessors from WED; IWYU for WTH (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/corewm/tooltip_aura.cc ('k') | ui/views/widget/desktop_aura/desktop_capture_client.cc » ('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 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/views/event_utils.h" 5 #include "ui/views/event_utils.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/client/screen_position_client.h" 9 #include "ui/aura/client/screen_position_client.h"
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
11 #include "ui/aura/window_tree_host.h"
11 #include "ui/events/event.h" 12 #include "ui/events/event.h"
12 #include "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
13 #include "ui/views/views_delegate.h" 14 #include "ui/views/views_delegate.h"
14 15
15 using aura::client::ScreenPositionClient; 16 using aura::client::ScreenPositionClient;
16 17
17 namespace views { 18 namespace views {
18 19
19 bool RepostLocatedEvent(gfx::NativeWindow window, 20 bool RepostLocatedEvent(gfx::NativeWindow window,
20 const ui::LocatedEvent& event) { 21 const ui::LocatedEvent& event) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 relocated.reset(new ui::MouseEvent(orig)); 61 relocated.reset(new ui::MouseEvent(orig));
61 relocated->set_location(root_loc); 62 relocated->set_location(root_loc);
62 relocated->set_root_location(root_loc); 63 relocated->set_root_location(root_loc);
63 64
64 root_window->GetHost()->dispatcher()->RepostEvent(*relocated); 65 root_window->GetHost()->dispatcher()->RepostEvent(*relocated);
65 return true; 66 return true;
66 #endif 67 #endif
67 } 68 }
68 69
69 } // namespace views 70 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_aura.cc ('k') | ui/views/widget/desktop_aura/desktop_capture_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698