| 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 switch (event.type) { | 770 switch (event.type) { |
| 771 case WebInputEvent::Char: { | 771 case WebInputEvent::Char: { |
| 772 if (event.windowsKeyCode == VKEY_SPACE) { | 772 if (event.windowsKeyCode == VKEY_SPACE) { |
| 773 int key_code = ((event.modifiers & WebInputEvent::ShiftKey) ? | 773 int key_code = ((event.modifiers & WebInputEvent::ShiftKey) ? |
| 774 VKEY_PRIOR : VKEY_NEXT); | 774 VKEY_PRIOR : VKEY_NEXT); |
| 775 return ScrollViewWithKeyboard(key_code); | 775 return ScrollViewWithKeyboard(key_code); |
| 776 } | 776 } |
| 777 break; | 777 break; |
| 778 } | 778 } |
| 779 | 779 |
| 780 #if defined(OS_WIN) | 780 #if defined(OS_WIN) || defined(OS_LINUX) |
| 781 case WebInputEvent::RawKeyDown: { | 781 case WebInputEvent::RawKeyDown: { |
| 782 #else | 782 #else |
| 783 case WebInputEvent::KeyDown: { | 783 case WebInputEvent::KeyDown: { |
| 784 #endif | 784 #endif |
| 785 if (event.modifiers == WebInputEvent::ControlKey) { | 785 if (event.modifiers == WebInputEvent::ControlKey) { |
| 786 switch (event.windowsKeyCode) { | 786 switch (event.windowsKeyCode) { |
| 787 case 'A': | 787 case 'A': |
| 788 GetFocusedFrame()->SelectAll(); | 788 GetFocusedFrame()->SelectAll(); |
| 789 return true; | 789 return true; |
| 790 case VKEY_INSERT: | 790 case VKEY_INSERT: |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1928 | 1928 |
| 1929 return document->focusedNode(); | 1929 return document->focusedNode(); |
| 1930 } | 1930 } |
| 1931 | 1931 |
| 1932 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1932 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
| 1933 IntPoint doc_point( | 1933 IntPoint doc_point( |
| 1934 page_->mainFrame()->view()->windowToContents(pos)); | 1934 page_->mainFrame()->view()->windowToContents(pos)); |
| 1935 return page_->mainFrame()->eventHandler()-> | 1935 return page_->mainFrame()->eventHandler()-> |
| 1936 hitTestResultAtPoint(doc_point, false); | 1936 hitTestResultAtPoint(doc_point, false); |
| 1937 } | 1937 } |
| OLD | NEW |