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

Side by Side Diff: webkit/glue/webview_impl.cc

Issue 62143: Fix for a regression introduced by an autofill change (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698