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

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

Issue 149517: A quick fix for Issue 16597... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | « no previous file | 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 // deletion. 657 // deletion.
658 autocomplete_popup_client_->RemoveItemAtIndex(selected_index); 658 autocomplete_popup_client_->RemoveItemAtIndex(selected_index);
659 RefreshAutofillPopup(); 659 RefreshAutofillPopup();
660 return false; 660 return false;
661 } 661 }
662 662
663 if (!autocomplete_popup_->isInterestedInEventForKey(event.windowsKeyCode)) 663 if (!autocomplete_popup_->isInterestedInEventForKey(event.windowsKeyCode))
664 return false; 664 return false;
665 665
666 if (autocomplete_popup_->handleKeyEvent(MakePlatformKeyboardEvent(event))) { 666 if (autocomplete_popup_->handleKeyEvent(MakePlatformKeyboardEvent(event))) {
667 #if defined(OS_WIN) 667 #if defined(OS_WIN) || defined(OS_LINUX)
668 // We need to ignore the next Char event after this otherwise pressing 668 // We need to ignore the next Char event after this otherwise pressing
669 // enter when selecting an item in the menu will go to the page. 669 // enter when selecting an item in the menu will go to the page.
670 if (WebInputEvent::RawKeyDown == event.type) 670 if (WebInputEvent::RawKeyDown == event.type)
671 suppress_next_keypress_event_ = true; 671 suppress_next_keypress_event_ = true;
672 #endif 672 #endif
673 return true; 673 return true;
674 } 674 }
675 675
676 return false; 676 return false;
677 } 677 }
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1879
1880 return document->focusedNode(); 1880 return document->focusedNode();
1881 } 1881 }
1882 1882
1883 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { 1883 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) {
1884 IntPoint doc_point( 1884 IntPoint doc_point(
1885 page_->mainFrame()->view()->windowToContents(pos)); 1885 page_->mainFrame()->view()->windowToContents(pos));
1886 return page_->mainFrame()->eventHandler()-> 1886 return page_->mainFrame()->eventHandler()->
1887 hitTestResultAtPoint(doc_point, false); 1887 hitTestResultAtPoint(doc_point, false);
1888 } 1888 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698