| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "core/dom/NodeRenderingTraversal.h" | 38 #include "core/dom/NodeRenderingTraversal.h" |
| 39 #include "core/dom/Text.h" | 39 #include "core/dom/Text.h" |
| 40 #include "core/editing/Editor.h" | 40 #include "core/editing/Editor.h" |
| 41 #include "core/editing/FrameSelection.h" | 41 #include "core/editing/FrameSelection.h" |
| 42 #include "core/editing/HTMLInterchange.h" | 42 #include "core/editing/HTMLInterchange.h" |
| 43 #include "core/editing/InputMethodController.h" | 43 #include "core/editing/InputMethodController.h" |
| 44 #include "core/editing/TextIterator.h" | 44 #include "core/editing/TextIterator.h" |
| 45 #include "core/editing/markup.h" | 45 #include "core/editing/markup.h" |
| 46 #include "core/events/KeyboardEvent.h" | 46 #include "core/events/KeyboardEvent.h" |
| 47 #include "core/events/WheelEvent.h" | 47 #include "core/events/WheelEvent.h" |
| 48 #include "core/frame/EventHandlerRegistry.h" | |
| 49 #include "core/frame/FrameHost.h" | 48 #include "core/frame/FrameHost.h" |
| 50 #include "core/frame/FrameView.h" | 49 #include "core/frame/FrameView.h" |
| 51 #include "core/frame/LocalFrame.h" | 50 #include "core/frame/LocalFrame.h" |
| 52 #include "core/frame/Settings.h" | 51 #include "core/frame/Settings.h" |
| 53 #include "core/html/HTMLImportElement.h" | 52 #include "core/html/HTMLImportElement.h" |
| 54 #include "core/html/ime/InputMethodContext.h" | 53 #include "core/html/ime/InputMethodContext.h" |
| 55 #include "core/loader/FrameLoader.h" | 54 #include "core/loader/FrameLoader.h" |
| 56 #include "core/loader/UniqueIdentifier.h" | 55 #include "core/loader/UniqueIdentifier.h" |
| 57 #include "core/page/Chrome.h" | 56 #include "core/page/Chrome.h" |
| 58 #include "core/page/EventHandler.h" | 57 #include "core/page/EventHandler.h" |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 void WebViewImpl::zoomToFindInPageRect(const WebRect& rect) | 752 void WebViewImpl::zoomToFindInPageRect(const WebRect& rect) |
| 754 { | 753 { |
| 755 //FIXME(sky) | 754 //FIXME(sky) |
| 756 } | 755 } |
| 757 | 756 |
| 758 bool WebViewImpl::zoomToMultipleTargetsRect(const WebRect& rect) | 757 bool WebViewImpl::zoomToMultipleTargetsRect(const WebRect& rect) |
| 759 { | 758 { |
| 760 return false; | 759 return false; |
| 761 } | 760 } |
| 762 | 761 |
| 763 void WebViewImpl::hasTouchEventHandlers(bool hasTouchHandlers) | |
| 764 { | |
| 765 m_client->hasTouchEventHandlers(hasTouchHandlers); | |
| 766 } | |
| 767 | |
| 768 bool WebViewImpl::hasTouchEventHandlersAt(const WebPoint& point) | |
| 769 { | |
| 770 // FIXME: Implement this. Note that the point must be divided by pageScaleFa
ctor. | |
| 771 return true; | |
| 772 } | |
| 773 | |
| 774 bool WebViewImpl::keyEventDefault(const WebKeyboardEvent& event) | 762 bool WebViewImpl::keyEventDefault(const WebKeyboardEvent& event) |
| 775 { | 763 { |
| 776 LocalFrame* frame = focusedCoreFrame(); | 764 LocalFrame* frame = focusedCoreFrame(); |
| 777 if (!frame) | 765 if (!frame) |
| 778 return false; | 766 return false; |
| 779 | 767 |
| 780 switch (event.type) { | 768 switch (event.type) { |
| 781 case WebInputEvent::Char: | 769 case WebInputEvent::Char: |
| 782 if (event.windowsKeyCode == VKEY_SPACE) { | 770 if (event.windowsKeyCode == VKEY_SPACE) { |
| 783 int keyCode = ((event.modifiers & WebInputEvent::ShiftKey) ? VKEY_PR
IOR : VKEY_NEXT); | 771 int keyCode = ((event.modifiers & WebInputEvent::ShiftKey) ? VKEY_PR
IOR : VKEY_NEXT); |
| (...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 m_layerTreeView->setVisible(visible); | 2357 m_layerTreeView->setVisible(visible); |
| 2370 } | 2358 } |
| 2371 } | 2359 } |
| 2372 | 2360 |
| 2373 bool WebViewImpl::shouldDisableDesktopWorkarounds() | 2361 bool WebViewImpl::shouldDisableDesktopWorkarounds() |
| 2374 { | 2362 { |
| 2375 return true; | 2363 return true; |
| 2376 } | 2364 } |
| 2377 | 2365 |
| 2378 } // namespace blink | 2366 } // namespace blink |
| OLD | NEW |