mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make CEF compliant with Google/Chromium style (issue #473).
- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories. - Update existing CEF source code to be compliant with the style requirements. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -2,71 +2,58 @@
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include "drag_data_impl.h"
|
||||
#include "libcef/drag_data_impl.h"
|
||||
|
||||
CefDragDataImpl::CefDragDataImpl(const WebDropData& data)
|
||||
: data_(data)
|
||||
{
|
||||
: data_(data) {
|
||||
}
|
||||
|
||||
bool CefDragDataImpl::IsLink()
|
||||
{
|
||||
|
||||
bool CefDragDataImpl::IsLink() {
|
||||
return (data_.url.is_valid() && data_.file_extension.empty());
|
||||
}
|
||||
|
||||
bool CefDragDataImpl::IsFragment()
|
||||
{
|
||||
bool CefDragDataImpl::IsFragment() {
|
||||
return (!data_.url.is_valid() && data_.file_extension.empty() &&
|
||||
data_.filenames.empty());
|
||||
}
|
||||
|
||||
bool CefDragDataImpl::IsFile()
|
||||
{
|
||||
bool CefDragDataImpl::IsFile() {
|
||||
return (!data_.file_extension.empty() || !data_.filenames.empty());
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetLinkURL()
|
||||
{
|
||||
CefString CefDragDataImpl::GetLinkURL() {
|
||||
return data_.url.spec();
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetLinkTitle()
|
||||
{
|
||||
CefString CefDragDataImpl::GetLinkTitle() {
|
||||
return data_.url_title;
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetLinkMetadata()
|
||||
{
|
||||
CefString CefDragDataImpl::GetLinkMetadata() {
|
||||
return data_.download_metadata;
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetFragmentText()
|
||||
{
|
||||
CefString CefDragDataImpl::GetFragmentText() {
|
||||
return data_.plain_text;
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetFragmentHtml()
|
||||
{
|
||||
CefString CefDragDataImpl::GetFragmentHtml() {
|
||||
return data_.text_html;
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetFragmentBaseURL()
|
||||
{
|
||||
CefString CefDragDataImpl::GetFragmentBaseURL() {
|
||||
return data_.html_base_url.spec();
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetFileExtension()
|
||||
{
|
||||
CefString CefDragDataImpl::GetFileExtension() {
|
||||
return data_.file_extension;
|
||||
}
|
||||
|
||||
CefString CefDragDataImpl::GetFileName()
|
||||
{
|
||||
CefString CefDragDataImpl::GetFileName() {
|
||||
return data_.file_description_filename;
|
||||
}
|
||||
|
||||
bool CefDragDataImpl::GetFileNames(std::vector<CefString>& names)
|
||||
{
|
||||
bool CefDragDataImpl::GetFileNames(std::vector<CefString>& names) {
|
||||
if (data_.filenames.empty())
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user