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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 right_aligned 1844 right_aligned
1845 ? visual_viewport.VisibleRect().MaxX() - kContextMenuMargin 1845 ? visual_viewport.VisibleRect().MaxX() - kContextMenuMargin
1846 : visual_viewport.GetScrollOffset().Width() + kContextMenuMargin, 1846 : visual_viewport.GetScrollOffset().Width() + kContextMenuMargin,
1847 visual_viewport.GetScrollOffset().Height() + kContextMenuMargin); 1847 visual_viewport.GetScrollOffset().Height() + kContextMenuMargin);
1848 } 1848 }
1849 1849
1850 frame_->View()->SetCursor(PointerCursor()); 1850 frame_->View()->SetCursor(PointerCursor());
1851 IntPoint location_in_viewport = 1851 IntPoint location_in_viewport =
1852 visual_viewport.RootFrameToViewport(location_in_root_frame); 1852 visual_viewport.RootFrameToViewport(location_in_root_frame);
1853 IntPoint global_position = 1853 IntPoint global_position =
1854 view->GetHostWindow() 1854 view->GetChromeClient()
1855 ->ViewportToScreen(IntRect(location_in_viewport, IntSize()), 1855 ->ViewportToScreen(IntRect(location_in_viewport, IntSize()),
1856 frame_->View()) 1856 frame_->View())
1857 .Location(); 1857 .Location();
1858 1858
1859 Node* target_node = 1859 Node* target_node =
1860 override_target_element ? override_target_element : doc->FocusedElement(); 1860 override_target_element ? override_target_element : doc->FocusedElement();
1861 if (!target_node) 1861 if (!target_node)
1862 target_node = doc; 1862 target_node = doc;
1863 1863
1864 // Use the focused node as the target for hover and active. 1864 // Use the focused node as the target for hover and active.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 MouseEventWithHitTestResults& mev, 2109 MouseEventWithHitTestResults& mev,
2110 LocalFrame* subframe) { 2110 LocalFrame* subframe) {
2111 WebInputEventResult result = 2111 WebInputEventResult result =
2112 subframe->GetEventHandler().HandleMouseReleaseEvent(mev.Event()); 2112 subframe->GetEventHandler().HandleMouseReleaseEvent(mev.Event());
2113 if (result != WebInputEventResult::kNotHandled) 2113 if (result != WebInputEventResult::kNotHandled)
2114 return result; 2114 return result;
2115 return WebInputEventResult::kHandledSystem; 2115 return WebInputEventResult::kHandledSystem;
2116 } 2116 }
2117 2117
2118 } // namespace blink 2118 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/inspector/DevToolsHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698