OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2007 Google Inc. All Rights Reserved. | 2 * Copyright 2007 Google Inc. All Rights Reserved. |
3 * | 3 * |
4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
5 * | 5 * |
6 * ***** BEGIN LICENSE BLOCK ***** | 6 * ***** BEGIN LICENSE BLOCK ***** |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1530 return; | 1530 return; |
1531 | 1531 |
1532 page_->inspectorController()->inspect(result.innerNonSharedNode()); | 1532 page_->inspectorController()->inspect(result.innerNonSharedNode()); |
1533 } | 1533 } |
1534 } | 1534 } |
1535 | 1535 |
1536 void WebViewImpl::ShowJavaScriptConsole() { | 1536 void WebViewImpl::ShowJavaScriptConsole() { |
1537 page_->inspectorController()->showPanel(InspectorController::ConsolePanel); | 1537 page_->inspectorController()->showPanel(InspectorController::ConsolePanel); |
1538 } | 1538 } |
1539 | 1539 |
| 1540 void WebViewImpl::DragSourceCancelledAt( |
| 1541 const WebPoint& client_point, |
| 1542 const WebPoint& screen_point) { |
| 1543 PlatformMouseEvent pme(webkit_glue::WebPointToIntPoint(client_point), |
| 1544 webkit_glue::WebPointToIntPoint(screen_point), |
| 1545 NoButton, MouseEventMoved, 0, false, false, false, |
| 1546 false, 0); |
| 1547 page_->mainFrame()->eventHandler()->dragSourceEndedAt(pme, DragOperationNone); |
| 1548 } |
| 1549 |
1540 void WebViewImpl::DragSourceEndedAt( | 1550 void WebViewImpl::DragSourceEndedAt( |
1541 const WebPoint& client_point, | 1551 const WebPoint& client_point, |
1542 const WebPoint& screen_point) { | 1552 const WebPoint& screen_point) { |
1543 PlatformMouseEvent pme(webkit_glue::WebPointToIntPoint(client_point), | 1553 PlatformMouseEvent pme(webkit_glue::WebPointToIntPoint(client_point), |
1544 webkit_glue::WebPointToIntPoint(screen_point), | 1554 webkit_glue::WebPointToIntPoint(screen_point), |
1545 NoButton, MouseEventMoved, 0, false, false, false, | 1555 LeftButton, MouseEventMoved, 0, false, false, false, |
1546 false, 0); | 1556 false, 0); |
1547 page_->mainFrame()->eventHandler()->dragSourceEndedAt(pme, DragOperationCopy); | 1557 page_->mainFrame()->eventHandler()->dragSourceEndedAt(pme, DragOperationCopy); |
1548 } | 1558 } |
1549 | 1559 |
1550 void WebViewImpl::DragSourceMovedTo( | 1560 void WebViewImpl::DragSourceMovedTo( |
1551 const WebPoint& client_point, | 1561 const WebPoint& client_point, |
1552 const WebPoint& screen_point) { | 1562 const WebPoint& screen_point) { |
1553 PlatformMouseEvent pme(webkit_glue::WebPointToIntPoint(client_point), | 1563 PlatformMouseEvent pme(webkit_glue::WebPointToIntPoint(client_point), |
1554 webkit_glue::WebPointToIntPoint(screen_point), | 1564 webkit_glue::WebPointToIntPoint(screen_point), |
1555 LeftButton, MouseEventMoved, 0, false, false, false, | 1565 LeftButton, MouseEventMoved, 0, false, false, false, |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 | 1879 |
1870 return document->focusedNode(); | 1880 return document->focusedNode(); |
1871 } | 1881 } |
1872 | 1882 |
1873 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1883 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
1874 IntPoint doc_point( | 1884 IntPoint doc_point( |
1875 page_->mainFrame()->view()->windowToContents(pos)); | 1885 page_->mainFrame()->view()->windowToContents(pos)); |
1876 return page_->mainFrame()->eventHandler()-> | 1886 return page_->mainFrame()->eventHandler()-> |
1877 hitTestResultAtPoint(doc_point, false); | 1887 hitTestResultAtPoint(doc_point, false); |
1878 } | 1888 } |
OLD | NEW |