| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include "SkMatrix44.h" | 33 #include "SkMatrix44.h" |
| 34 #include "core/HTMLNames.h" | 34 #include "core/HTMLNames.h" |
| 35 #include "core/css/CSSPrimitiveValueMappings.h" | 35 #include "core/css/CSSPrimitiveValueMappings.h" |
| 36 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
| 37 #include "core/dom/Node.h" | 37 #include "core/dom/Node.h" |
| 38 #include "core/editing/markers/DocumentMarker.h" | 38 #include "core/editing/markers/DocumentMarker.h" |
| 39 #include "core/exported/WebViewBase.h" | 39 #include "core/exported/WebViewBase.h" |
| 40 #include "core/frame/FrameView.h" | 40 #include "core/frame/FrameView.h" |
| 41 #include "core/frame/VisualViewport.h" | 41 #include "core/frame/VisualViewport.h" |
| 42 #include "core/frame/WebLocalFrameBase.h" |
| 42 #include "core/input/KeyboardEventManager.h" | 43 #include "core/input/KeyboardEventManager.h" |
| 43 #include "core/page/Page.h" | 44 #include "core/page/Page.h" |
| 44 #include "core/style/ComputedStyle.h" | 45 #include "core/style/ComputedStyle.h" |
| 45 #include "modules/accessibility/AXObject.h" | 46 #include "modules/accessibility/AXObject.h" |
| 46 #include "modules/accessibility/AXObjectCacheImpl.h" | 47 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 47 #include "modules/accessibility/AXTable.h" | 48 #include "modules/accessibility/AXTable.h" |
| 48 #include "modules/accessibility/AXTableCell.h" | 49 #include "modules/accessibility/AXTableCell.h" |
| 49 #include "modules/accessibility/AXTableColumn.h" | 50 #include "modules/accessibility/AXTableColumn.h" |
| 50 #include "modules/accessibility/AXTableRow.h" | 51 #include "modules/accessibility/AXTableRow.h" |
| 51 #include "platform/wtf/text/StringBuilder.h" | 52 #include "platform/wtf/text/StringBuilder.h" |
| 52 #include "public/platform/WebFloatRect.h" | 53 #include "public/platform/WebFloatRect.h" |
| 53 #include "public/platform/WebPoint.h" | 54 #include "public/platform/WebPoint.h" |
| 54 #include "public/platform/WebRect.h" | 55 #include "public/platform/WebRect.h" |
| 55 #include "public/platform/WebString.h" | 56 #include "public/platform/WebString.h" |
| 56 #include "public/platform/WebURL.h" | 57 #include "public/platform/WebURL.h" |
| 57 #include "public/web/WebDocument.h" | 58 #include "public/web/WebDocument.h" |
| 58 #include "public/web/WebElement.h" | 59 #include "public/web/WebElement.h" |
| 59 #include "public/web/WebNode.h" | 60 #include "public/web/WebNode.h" |
| 60 #include "web/WebLocalFrameImpl.h" | |
| 61 | 61 |
| 62 namespace blink { | 62 namespace blink { |
| 63 | 63 |
| 64 class WebAXSparseAttributeClientAdapter : public AXSparseAttributeClient { | 64 class WebAXSparseAttributeClientAdapter : public AXSparseAttributeClient { |
| 65 public: | 65 public: |
| 66 WebAXSparseAttributeClientAdapter(WebAXSparseAttributeClient& attribute_map) | 66 WebAXSparseAttributeClientAdapter(WebAXSparseAttributeClient& attribute_map) |
| 67 : attribute_map_(attribute_map) {} | 67 : attribute_map_(attribute_map) {} |
| 68 virtual ~WebAXSparseAttributeClientAdapter() {} | 68 virtual ~WebAXSparseAttributeClientAdapter() {} |
| 69 | 69 |
| 70 private: | 70 private: |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 element = ToElement(parent); | 937 element = ToElement(parent); |
| 938 } | 938 } |
| 939 | 939 |
| 940 if (!element) | 940 if (!element) |
| 941 return; | 941 return; |
| 942 | 942 |
| 943 LocalFrame* frame = element->GetDocument().GetFrame(); | 943 LocalFrame* frame = element->GetDocument().GetFrame(); |
| 944 if (!frame) | 944 if (!frame) |
| 945 return; | 945 return; |
| 946 | 946 |
| 947 WebViewBase* view = WebLocalFrameImpl::FromFrame(frame)->ViewImpl(); | 947 WebViewBase* view = WebLocalFrameBase::FromFrame(frame)->ViewImpl(); |
| 948 if (!view) | 948 if (!view) |
| 949 return; | 949 return; |
| 950 | 950 |
| 951 view->ShowContextMenuForElement(WebElement(element)); | 951 view->ShowContextMenuForElement(WebElement(element)); |
| 952 } | 952 } |
| 953 | 953 |
| 954 WebString WebAXObject::StringValue() const { | 954 WebString WebAXObject::StringValue() const { |
| 955 if (IsDetached()) | 955 if (IsDetached()) |
| 956 return WebString(); | 956 return WebString(); |
| 957 | 957 |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 WebAXObject& WebAXObject::operator=(AXObject* object) { | 1553 WebAXObject& WebAXObject::operator=(AXObject* object) { |
| 1554 private_ = object; | 1554 private_ = object; |
| 1555 return *this; | 1555 return *this; |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 WebAXObject::operator AXObject*() const { | 1558 WebAXObject::operator AXObject*() const { |
| 1559 return private_.Get(); | 1559 return private_.Get(); |
| 1560 } | 1560 } |
| 1561 | 1561 |
| 1562 } // namespace blink | 1562 } // namespace blink |
| OLD | NEW |