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

Unified Diff: ui/aura/window_event_dispatcher.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_targeter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index 82d1ef6a4679af13617fb83f2df334c8bb854f57..170d51345eabd2dc8a974e90f79a11e95335212e 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -299,9 +299,17 @@ void WindowEventDispatcher::OnCursorMovedToRootLocation(
////////////////////////////////////////////////////////////////////////////////
// WindowEventDispatcher, private:
+Window* WindowEventDispatcher::window() {
+ return host_->window();
+}
+
+const Window* WindowEventDispatcher::window() const {
+ return host_->window();
+}
+
void WindowEventDispatcher::TransformEventForDeviceScaleFactor(
ui::LocatedEvent* event) {
- event->UpdateForRootTransform(host()->GetInverseRootTransform());
+ event->UpdateForRootTransform(host_->GetInverseRootTransform());
}
ui::EventDispatchDetails WindowEventDispatcher::DispatchMouseEnterOrExit(
@@ -637,7 +645,7 @@ ui::EventDispatchDetails WindowEventDispatcher::SynthesizeMouseMoveEvent() {
if (!window()->bounds().Contains(root_mouse_location))
return details;
gfx::Point host_mouse_location = root_mouse_location;
- host()->ConvertPointToHost(&host_mouse_location);
+ host_->ConvertPointToHost(&host_mouse_location);
ui::MouseEvent event(ui::ET_MOUSE_MOVED,
host_mouse_location,
host_mouse_location,
« no previous file with comments | « ui/aura/window_event_dispatcher.h ('k') | ui/aura/window_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698