chromium/third_party/blink/renderer/core/exported/web_element.cc

/*
 * Copyright (C) 2009 Google Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 *     * Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above
 * copyright notice, this list of conditions and the following disclaimer
 * in the documentation and/or other materials provided with the
 * distribution.
 *     * Neither the name of Google Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "third_party/blink/public/web/web_element.h"

#include "third_party/blink/public/web/web_label_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_element.h"
#include "third_party/blink/renderer/core/clipboard/data_object.h"
#include "third_party/blink/renderer/core/clipboard/data_transfer.h"
#include "third_party/blink/renderer/core/clipboard/data_transfer_access_policy.h"
#include "third_party/blink/renderer/core/css/css_computed_style_declaration.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/focus_params.h"
#include "third_party/blink/renderer/core/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/frame_selection.h"
#include "third_party/blink/renderer/core/editing/ime/input_method_controller.h"
#include "third_party/blink/renderer/core/editing/selection_template.h"
#include "third_party/blink/renderer/core/editing/visible_selection.h"
#include "third_party/blink/renderer/core/events/clipboard_event.h"
#include "third_party/blink/renderer/core/events/text_event.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/custom/custom_element.h"
#include "third_party/blink/renderer/core/html/forms/html_label_element.h"
#include "third_party/blink/renderer/core/html/forms/text_control_element.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/graphics/image.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "ui/gfx/geometry/size.h"

namespace blink {

WebElement WebElement::FromV8Value(v8::Isolate* isolate,
                                   v8::Local<v8::Value> value) {}

bool WebElement::IsFormControlElement() const {}

// TODO(dglazkov): Remove. Consumers of this code should use
// Node:hasEditableStyle.  http://crbug.com/612560
bool WebElement::IsEditable() const {}

WebString WebElement::TagName() const {}

WebString WebElement::GetIdAttribute() const {}

bool WebElement::HasHTMLTagName(const WebString& tag_name) const {}

bool WebElement::HasAttribute(const WebString& attr_name) const {}

WebString WebElement::GetAttribute(const WebString& attr_name) const {}

void WebElement::SetAttribute(const WebString& attr_name,
                              const WebString& attr_value) {}

WebString WebElement::TextContent() const {}
WebString WebElement::TextContentAbridged(const unsigned int max_length) const {}

WebString WebElement::InnerHTML() const {}

bool WebElement::WritingSuggestions() const {}

bool WebElement::ContainsFrameSelection() const {}

WebString WebElement::SelectedText() const {}

void WebElement::SelectText(bool select_all) {}

void WebElement::PasteText(const WebString& text, bool replace_all) {}

WebVector<WebLabelElement> WebElement::Labels() const {}

bool WebElement::IsAutonomousCustomElement() const {}

WebNode WebElement::ShadowRoot() const {}

WebElement WebElement::OwnerShadowHost() const {}

WebNode WebElement::OpenOrClosedShadowRoot() {}

gfx::Rect WebElement::BoundsInWidget() const {}

SkBitmap WebElement::ImageContents() {}

std::vector<uint8_t> WebElement::CopyOfImageData() {}

std::string WebElement::ImageExtension() {}

gfx::Size WebElement::GetImageSize() {}

gfx::Size WebElement::GetClientSize() const {}

gfx::Size WebElement::GetScrollSize() const {}

WebString WebElement::GetComputedValue(const WebString& property_name) {}

WebElement::WebElement(Element* elem) :{}

DEFINE_WEB_NODE_TYPE_CASTS()

WebElement& WebElement::operator=(Element* elem) {}

operator blink::Element *()

Image* WebElement::GetImage() {}

}  // namespace blink