| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 } | 452 } |
| 453 } | 453 } |
| 454 } | 454 } |
| 455 | 455 |
| 456 main_frame()->frame()->eventHandler()->handleMousePressEvent( | 456 main_frame()->frame()->eventHandler()->handleMousePressEvent( |
| 457 MakePlatformMouseEvent(main_frame()->frameview(), event)); | 457 MakePlatformMouseEvent(main_frame()->frameview(), event)); |
| 458 | 458 |
| 459 if (clicked_node.get() && clicked_node == GetFocusedNode()) { | 459 if (clicked_node.get() && clicked_node == GetFocusedNode()) { |
| 460 // Focus has not changed, show the autocomplete popup. | 460 // Focus has not changed, show the autocomplete popup. |
| 461 static_cast<EditorClientImpl*>(page_->editorClient())-> | 461 static_cast<EditorClientImpl*>(page_->editorClient())-> |
| 462 ShowAutofillForNode(clicked_node.get()); | 462 ShowFormAutofillForNode(clicked_node.get()); |
| 463 } | 463 } |
| 464 | 464 |
| 465 // Dispatch the contextmenu event regardless of if the click was swallowed. | 465 // Dispatch the contextmenu event regardless of if the click was swallowed. |
| 466 // On Windows, we handle it on mouse up, not down. | 466 // On Windows, we handle it on mouse up, not down. |
| 467 #if defined(OS_MACOSX) | 467 #if defined(OS_MACOSX) |
| 468 if (event.button == WebMouseEvent::ButtonRight || | 468 if (event.button == WebMouseEvent::ButtonRight || |
| 469 (event.button == WebMouseEvent::ButtonLeft && | 469 (event.button == WebMouseEvent::ButtonLeft && |
| 470 event.modifiers & WebMouseEvent::ControlKey)) { | 470 event.modifiers & WebMouseEvent::ControlKey)) { |
| 471 MouseContextMenu(event); | 471 MouseContextMenu(event); |
| 472 } | 472 } |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1877 | 1877 |
| 1878 return document->focusedNode(); | 1878 return document->focusedNode(); |
| 1879 } | 1879 } |
| 1880 | 1880 |
| 1881 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1881 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
| 1882 IntPoint doc_point( | 1882 IntPoint doc_point( |
| 1883 page_->mainFrame()->view()->windowToContents(pos)); | 1883 page_->mainFrame()->view()->windowToContents(pos)); |
| 1884 return page_->mainFrame()->eventHandler()-> | 1884 return page_->mainFrame()->eventHandler()-> |
| 1885 hitTestResultAtPoint(doc_point, false); | 1885 hitTestResultAtPoint(doc_point, false); |
| 1886 } | 1886 } |
| OLD | NEW |