Commit 5bb473a5 authored by deepak.sa@samsung.com's avatar deepak.sa@samsung.com

Cleanup namespace usage in Source/web[A-V]*.cpp

This patch removes unnecessary blink:: prefixes.
It removes unnecesssary *using* keyword lines.

BUG=

Review URL: https://codereview.chromium.org/462353003

git-svn-id: svn://svn.chromium.org/blink/trunk@180234 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e7f59bab
...@@ -51,9 +51,6 @@ ...@@ -51,9 +51,6 @@
#include "wtf/HashSet.h" #include "wtf/HashSet.h"
#include "wtf/text/WTFString.h" #include "wtf/text/WTFString.h"
using namespace blink;
using namespace WTF;
namespace blink { namespace blink {
namespace { namespace {
...@@ -301,7 +298,7 @@ AssociatedURLLoader::~AssociatedURLLoader() ...@@ -301,7 +298,7 @@ AssociatedURLLoader::~AssociatedURLLoader()
} }
#define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, webcore_name) \ #define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, webcore_name) \
COMPILE_ASSERT(static_cast<int>(blink::webkit_name) == static_cast<int>(blink::webcore_name), mismatching_enums) COMPILE_ASSERT(static_cast<int>(webkit_name) == static_cast<int>(webcore_name), mismatching_enums)
COMPILE_ASSERT_MATCHING_ENUM(WebURLLoaderOptions::CrossOriginRequestPolicyDeny, DenyCrossOriginRequests); COMPILE_ASSERT_MATCHING_ENUM(WebURLLoaderOptions::CrossOriginRequestPolicyDeny, DenyCrossOriginRequests);
COMPILE_ASSERT_MATCHING_ENUM(WebURLLoaderOptions::CrossOriginRequestPolicyUseAccessControl, UseAccessControl); COMPILE_ASSERT_MATCHING_ENUM(WebURLLoaderOptions::CrossOriginRequestPolicyUseAccessControl, UseAccessControl);
...@@ -340,8 +337,8 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebUR ...@@ -340,8 +337,8 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebUR
if (allowLoad) { if (allowLoad) {
ThreadableLoaderOptions options; ThreadableLoaderOptions options;
options.preflightPolicy = static_cast<blink::PreflightPolicy>(m_options.preflightPolicy); options.preflightPolicy = static_cast<PreflightPolicy>(m_options.preflightPolicy);
options.crossOriginRequestPolicy = static_cast<blink::CrossOriginRequestPolicy>(m_options.crossOriginRequestPolicy); options.crossOriginRequestPolicy = static_cast<CrossOriginRequestPolicy>(m_options.crossOriginRequestPolicy);
ResourceLoaderOptions resourceLoaderOptions; ResourceLoaderOptions resourceLoaderOptions;
resourceLoaderOptions.sniffContent = m_options.sniffContent ? SniffContent : DoNotSniffContent; resourceLoaderOptions.sniffContent = m_options.sniffContent ? SniffContent : DoNotSniffContent;
...@@ -349,11 +346,11 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebUR ...@@ -349,11 +346,11 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebUR
resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData; resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
const ResourceRequest& webcoreRequest = newRequest.toResourceRequest(); const ResourceRequest& webcoreRequest = newRequest.toResourceRequest();
if (webcoreRequest.requestContext() == blink::WebURLRequest::RequestContextUnspecified) { if (webcoreRequest.requestContext() == WebURLRequest::RequestContextUnspecified) {
// FIXME: We load URLs without setting a TargetType (and therefore a request context) in several // FIXME: We load URLs without setting a TargetType (and therefore a request context) in several
// places in content/ (P2PPortAllocatorSession::AllocateLegacyRelaySession, for example). Remove // places in content/ (P2PPortAllocatorSession::AllocateLegacyRelaySession, for example). Remove
// this once those places are patched up. // this once those places are patched up.
newRequest.setRequestContext(blink::WebURLRequest::RequestContextInternal); newRequest.setRequestContext(WebURLRequest::RequestContextInternal);
} }
Document* webcoreDocument = m_frameImpl->frame()->document(); Document* webcoreDocument = m_frameImpl->frame()->document();
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "public/web/WebViewClient.h" #include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
BackForwardClientImpl::BackForwardClientImpl(WebViewImpl* webView) BackForwardClientImpl::BackForwardClientImpl(WebViewImpl* webView)
......
...@@ -108,11 +108,9 @@ ...@@ -108,11 +108,9 @@
#include "wtf/text/StringConcatenate.h" #include "wtf/text/StringConcatenate.h"
#include "wtf/unicode/CharacterNames.h" #include "wtf/unicode/CharacterNames.h"
using namespace blink;
namespace blink { namespace blink {
// Converts a blink::AXObjectCache::AXNotification to a blink::WebAXEvent // Converts a AXObjectCache::AXNotification to a WebAXEvent
static WebAXEvent toWebAXEvent(AXObjectCache::AXNotification notification) static WebAXEvent toWebAXEvent(AXObjectCache::AXNotification notification)
{ {
// These enums have the same values; enforced in AssertMatchingEnums.cpp. // These enums have the same values; enforced in AssertMatchingEnums.cpp.
...@@ -206,7 +204,7 @@ void ChromeClientImpl::focusedNodeChanged(Node* node) ...@@ -206,7 +204,7 @@ void ChromeClientImpl::focusedNodeChanged(Node* node)
m_webView->client()->setKeyboardFocusURL(focusURL); m_webView->client()->setKeyboardFocusURL(focusURL);
} }
void ChromeClientImpl::focusedFrameChanged(blink::LocalFrame* frame) void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame)
{ {
WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
if (webframe && webframe->client()) if (webframe && webframe->client())
...@@ -386,7 +384,7 @@ bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, LocalF ...@@ -386,7 +384,7 @@ bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const String& message, LocalF
bool isReload = false; bool isReload = false;
WebDataSource* ds = webframe->provisionalDataSource(); WebDataSource* ds = webframe->provisionalDataSource();
if (ds) if (ds)
isReload = (ds->navigationType() == blink::WebNavigationTypeReload); isReload = (ds->navigationType() == WebNavigationTypeReload);
if (webframe->client()) if (webframe->client())
return webframe->client()->runModalBeforeUnloadDialog(isReload, message); return webframe->client()->runModalBeforeUnloadDialog(isReload, message);
...@@ -639,7 +637,7 @@ void ChromeClientImpl::enumerateChosenDirectory(FileChooser* fileChooser) ...@@ -639,7 +637,7 @@ void ChromeClientImpl::enumerateChosenDirectory(FileChooser* fileChooser)
chooserCompletion->didChooseFile(WebVector<WebString>()); chooserCompletion->didChooseFile(WebVector<WebString>());
} }
void ChromeClientImpl::setCursor(const blink::Cursor& cursor) void ChromeClientImpl::setCursor(const Cursor& cursor)
{ {
setCursor(WebCursorInfo(cursor)); setCursor(WebCursorInfo(cursor));
} }
...@@ -755,7 +753,7 @@ bool ChromeClientImpl::shouldRunModalDialogDuringPageDismissal(const DialogType& ...@@ -755,7 +753,7 @@ bool ChromeClientImpl::shouldRunModalDialogDuringPageDismissal(const DialogType&
int dismissal = static_cast<int>(dismissalType) - 1; // Exclude NoDismissal. int dismissal = static_cast<int>(dismissalType) - 1; // Exclude NoDismissal.
ASSERT_WITH_SECURITY_IMPLICATION(0 <= dismissal && dismissal < static_cast<int>(arraysize(kDismissals))); ASSERT_WITH_SECURITY_IMPLICATION(0 <= dismissal && dismissal < static_cast<int>(arraysize(kDismissals)));
blink::Platform::current()->histogramEnumeration("Renderer.ModalDialogsDuringPageDismissal", dismissal * arraysize(kDialogs) + dialog, arraysize(kDialogs) * arraysize(kDismissals)); Platform::current()->histogramEnumeration("Renderer.ModalDialogsDuringPageDismissal", dismissal * arraysize(kDialogs) + dialog, arraysize(kDialogs) * arraysize(kDismissals));
String message = String("Blocked ") + kDialogs[dialog] + "('" + dialogMessage + "') during " + kDismissals[dismissal] + "."; String message = String("Blocked ") + kDialogs[dialog] + "('" + dialogMessage + "') during " + kDismissals[dismissal] + ".";
m_webView->mainFrame()->addMessageToConsole(WebConsoleMessage(WebConsoleMessage::LevelError, message)); m_webView->mainFrame()->addMessageToConsole(WebConsoleMessage(WebConsoleMessage::LevelError, message));
...@@ -833,7 +831,7 @@ void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ...@@ -833,7 +831,7 @@ void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle
// FIXME: Remove this code once we have input routing in the browser // FIXME: Remove this code once we have input routing in the browser
// process. See http://crbug.com/339659. // process. See http://crbug.com/339659.
void ChromeClientImpl::forwardInputEvent( void ChromeClientImpl::forwardInputEvent(
blink::Frame* frame, blink::Event* event) Frame* frame, Event* event)
{ {
// FIXME: Input event forwarding to out-of-process frames is broken until // FIXME: Input event forwarding to out-of-process frames is broken until
// WebRemoteFrameImpl has a WebFrameClient. // WebRemoteFrameImpl has a WebFrameClient.
...@@ -846,17 +844,17 @@ void ChromeClientImpl::forwardInputEvent( ...@@ -846,17 +844,17 @@ void ChromeClientImpl::forwardInputEvent(
// need to forward input events across processes. // need to forward input events across processes.
// FIXME: Add a check for out-of-process iframes enabled. // FIXME: Add a check for out-of-process iframes enabled.
if (event->isKeyboardEvent()) { if (event->isKeyboardEvent()) {
WebKeyboardEventBuilder webEvent(*static_cast<blink::KeyboardEvent*>(event)); WebKeyboardEventBuilder webEvent(*static_cast<KeyboardEvent*>(event));
webFrame->client()->forwardInputEvent(&webEvent); webFrame->client()->forwardInputEvent(&webEvent);
} else if (event->isMouseEvent()) { } else if (event->isMouseEvent()) {
WebMouseEventBuilder webEvent(webFrame->frameView(), frame->ownerRenderer(), *static_cast<blink::MouseEvent*>(event)); WebMouseEventBuilder webEvent(webFrame->frameView(), frame->ownerRenderer(), *static_cast<MouseEvent*>(event));
// Internal Blink events should not be forwarded. // Internal Blink events should not be forwarded.
if (webEvent.type == WebInputEvent::Undefined) if (webEvent.type == WebInputEvent::Undefined)
return; return;
webFrame->client()->forwardInputEvent(&webEvent); webFrame->client()->forwardInputEvent(&webEvent);
} else if (event->isWheelEvent()) { } else if (event->isWheelEvent()) {
WebMouseWheelEventBuilder webEvent(webFrame->frameView(), frame->ownerRenderer(), *static_cast<blink::WheelEvent*>(event)); WebMouseWheelEventBuilder webEvent(webFrame->frameView(), frame->ownerRenderer(), *static_cast<WheelEvent*>(event));
if (webEvent.type == WebInputEvent::Undefined) if (webEvent.type == WebInputEvent::Undefined)
return; return;
webFrame->client()->forwardInputEvent(&webEvent); webFrame->client()->forwardInputEvent(&webEvent);
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "web/ChromeClientImpl.h" #include "web/ChromeClientImpl.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
// Keep in sync with Actions in colorSuggestionPicker.js. // Keep in sync with Actions in colorSuggestionPicker.js.
...@@ -45,7 +43,7 @@ enum ColorPickerPopupAction { ...@@ -45,7 +43,7 @@ enum ColorPickerPopupAction {
ColorPickerPopupActionSetValue = 0 ColorPickerPopupActionSetValue = 0
}; };
ColorChooserPopupUIController::ColorChooserPopupUIController(blink::LocalFrame* frame, ChromeClientImpl* chromeClient, ColorChooserClient* client) ColorChooserPopupUIController::ColorChooserPopupUIController(LocalFrame* frame, ChromeClientImpl* chromeClient, ColorChooserClient* client)
: ColorChooserUIController(frame, client) : ColorChooserUIController(frame, client)
, m_chromeClient(chromeClient) , m_chromeClient(chromeClient)
, m_client(client) , m_client(client)
...@@ -88,16 +86,16 @@ void ColorChooserPopupUIController::writeDocument(SharedBuffer* data) ...@@ -88,16 +86,16 @@ void ColorChooserPopupUIController::writeDocument(SharedBuffer* data)
IntRect anchorRectInScreen = m_chromeClient->rootViewToScreen(m_client->elementRectRelativeToRootView()); IntRect anchorRectInScreen = m_chromeClient->rootViewToScreen(m_client->elementRectRelativeToRootView());
PagePopupClient::addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data); PagePopupClient::addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data);
data->append(blink::Platform::current()->loadResource("pickerCommon.css")); data->append(Platform::current()->loadResource("pickerCommon.css"));
data->append(blink::Platform::current()->loadResource("colorSuggestionPicker.css")); data->append(Platform::current()->loadResource("colorSuggestionPicker.css"));
PagePopupClient::addString("</style></head><body><div id=main>Loading...</div><script>\n" PagePopupClient::addString("</style></head><body><div id=main>Loading...</div><script>\n"
"window.dialogArguments = {\n", data); "window.dialogArguments = {\n", data);
PagePopupClient::addProperty("values", suggestionValues, data); PagePopupClient::addProperty("values", suggestionValues, data);
PagePopupClient::addProperty("otherColorLabel", locale().queryString(WebLocalizedString::OtherColorLabel), data); PagePopupClient::addProperty("otherColorLabel", locale().queryString(WebLocalizedString::OtherColorLabel), data);
addProperty("anchorRectInScreen", anchorRectInScreen, data); addProperty("anchorRectInScreen", anchorRectInScreen, data);
PagePopupClient::addString("};\n", data); PagePopupClient::addString("};\n", data);
data->append(blink::Platform::current()->loadResource("pickerCommon.js")); data->append(Platform::current()->loadResource("pickerCommon.js"));
data->append(blink::Platform::current()->loadResource("colorSuggestionPicker.js")); data->append(Platform::current()->loadResource("colorSuggestionPicker.js"));
PagePopupClient::addString("</script></body>\n", data); PagePopupClient::addString("</script></body>\n", data);
} }
...@@ -148,4 +146,4 @@ void ColorChooserPopupUIController::closePopup() ...@@ -148,4 +146,4 @@ void ColorChooserPopupUIController::closePopup()
m_chromeClient->closePagePopup(m_popup); m_chromeClient->closePagePopup(m_popup);
} }
} } // namespace blink
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "public/web/WebFrameClient.h" #include "public/web/WebFrameClient.h"
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
using namespace blink;
namespace blink { namespace blink {
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "web/CompositionUnderlineBuilder.h" #include "web/CompositionUnderlineBuilder.h"
using namespace blink;
namespace blink { namespace blink {
CompositionUnderlineVectorBuilder::CompositionUnderlineVectorBuilder( CompositionUnderlineVectorBuilder::CompositionUnderlineVectorBuilder(
......
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
#include "public/web/WebPermissionClient.h" #include "public/web/WebPermissionClient.h"
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
using namespace blink;
namespace blink { namespace blink {
class ContextFeaturesCache FINAL : public NoBaseWillBeGarbageCollectedFinalized<ContextFeaturesCache>, public DocumentSupplement { class ContextFeaturesCache FINAL : public NoBaseWillBeGarbageCollectedFinalized<ContextFeaturesCache>, public DocumentSupplement {
......
...@@ -80,8 +80,6 @@ ...@@ -80,8 +80,6 @@
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
#include "wtf/text/WTFString.h" #include "wtf/text/WTFString.h"
using namespace blink;
namespace blink { namespace blink {
// Figure out the URL of a page or subframe. Returns |page_type| as the type, // Figure out the URL of a page or subframe. Returns |page_type| as the type,
...@@ -179,7 +177,7 @@ static String selectMisspellingAsync(LocalFrame* selectedFrame, String& descript ...@@ -179,7 +177,7 @@ static String selectMisspellingAsync(LocalFrame* selectedFrame, String& descript
return markerRange->text(); return markerRange->text();
} }
void ContextMenuClientImpl::showContextMenu(const blink::ContextMenu* defaultMenu) void ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu)
{ {
// Displaying the context menu in this function is a big hack as we don't // Displaying the context menu in this function is a big hack as we don't
// have context, i.e. whether this is being invoked via a script or in // have context, i.e. whether this is being invoked via a script or in
...@@ -440,7 +438,7 @@ static void populateSubMenuItems(const Vector<ContextMenuItem>& inputMenu, WebVe ...@@ -440,7 +438,7 @@ static void populateSubMenuItems(const Vector<ContextMenuItem>& inputMenu, WebVe
subMenuItems.swap(outputItems); subMenuItems.swap(outputItems);
} }
void ContextMenuClientImpl::populateCustomMenuItems(const blink::ContextMenu* defaultMenu, WebContextMenuData* data) void ContextMenuClientImpl::populateCustomMenuItems(const ContextMenu* defaultMenu, WebContextMenuData* data)
{ {
populateSubMenuItems(defaultMenu->items(), data->customItems); populateSubMenuItems(defaultMenu->items(), data->customItems);
} }
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
#include "web/WorkerPermissionClient.h" #include "web/WorkerPermissionClient.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtrWillBeRawPtr<DatabaseClientImpl> DatabaseClientImpl::create() PassOwnPtrWillBeRawPtr<DatabaseClientImpl> DatabaseClientImpl::create()
......
...@@ -43,23 +43,21 @@ ...@@ -43,23 +43,21 @@
#include "web/ChromeClientImpl.h" #include "web/ChromeClientImpl.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
DateTimeChooserImpl::DateTimeChooserImpl(ChromeClientImpl* chromeClient, blink::DateTimeChooserClient* client, const blink::DateTimeChooserParameters& parameters) DateTimeChooserImpl::DateTimeChooserImpl(ChromeClientImpl* chromeClient, DateTimeChooserClient* client, const DateTimeChooserParameters& parameters)
: m_chromeClient(chromeClient) : m_chromeClient(chromeClient)
, m_client(client) , m_client(client)
, m_popup(0) , m_popup(0)
, m_parameters(parameters) , m_parameters(parameters)
, m_locale(blink::Locale::create(parameters.locale)) , m_locale(Locale::create(parameters.locale))
{ {
ASSERT(m_chromeClient); ASSERT(m_chromeClient);
ASSERT(m_client); ASSERT(m_client);
m_popup = m_chromeClient->openPagePopup(this, m_parameters.anchorRectInRootView); m_popup = m_chromeClient->openPagePopup(this, m_parameters.anchorRectInRootView);
} }
PassRefPtrWillBeRawPtr<DateTimeChooserImpl> DateTimeChooserImpl::create(ChromeClientImpl* chromeClient, blink::DateTimeChooserClient* client, const blink::DateTimeChooserParameters& parameters) PassRefPtrWillBeRawPtr<DateTimeChooserImpl> DateTimeChooserImpl::create(ChromeClientImpl* chromeClient, DateTimeChooserClient* client, const DateTimeChooserParameters& parameters)
{ {
return adoptRefWillBeNoop(new DateTimeChooserImpl(chromeClient, client, parameters)); return adoptRefWillBeNoop(new DateTimeChooserImpl(chromeClient, client, parameters));
} }
...@@ -75,40 +73,40 @@ void DateTimeChooserImpl::endChooser() ...@@ -75,40 +73,40 @@ void DateTimeChooserImpl::endChooser()
m_chromeClient->closePagePopup(m_popup); m_chromeClient->closePagePopup(m_popup);
} }
blink::IntSize DateTimeChooserImpl::contentSize() IntSize DateTimeChooserImpl::contentSize()
{ {
return blink::IntSize(0, 0); return IntSize(0, 0);
} }
static String valueToDateTimeString(double value, AtomicString type) static String valueToDateTimeString(double value, AtomicString type)
{ {
blink::DateComponents components; DateComponents components;
if (type == blink::InputTypeNames::date) if (type == InputTypeNames::date)
components.setMillisecondsSinceEpochForDate(value); components.setMillisecondsSinceEpochForDate(value);
else if (type == blink::InputTypeNames::datetime_local) else if (type == InputTypeNames::datetime_local)
components.setMillisecondsSinceEpochForDateTimeLocal(value); components.setMillisecondsSinceEpochForDateTimeLocal(value);
else if (type == blink::InputTypeNames::month) else if (type == InputTypeNames::month)
components.setMonthsSinceEpoch(value); components.setMonthsSinceEpoch(value);
else if (type == blink::InputTypeNames::time) else if (type == InputTypeNames::time)
components.setMillisecondsSinceMidnight(value); components.setMillisecondsSinceMidnight(value);
else if (type == blink::InputTypeNames::week) else if (type == InputTypeNames::week)
components.setMillisecondsSinceEpochForWeek(value); components.setMillisecondsSinceEpochForWeek(value);
else else
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
return components.type() == blink::DateComponents::Invalid ? String() : components.toString(); return components.type() == DateComponents::Invalid ? String() : components.toString();
} }
void DateTimeChooserImpl::writeDocument(blink::SharedBuffer* data) void DateTimeChooserImpl::writeDocument(SharedBuffer* data)
{ {
String stepString = String::number(m_parameters.step); String stepString = String::number(m_parameters.step);
String stepBaseString = String::number(m_parameters.stepBase, 11, WTF::TruncateTrailingZeros); String stepBaseString = String::number(m_parameters.stepBase, 11, WTF::TruncateTrailingZeros);
IntRect anchorRectInScreen = m_chromeClient->rootViewToScreen(m_parameters.anchorRectInRootView); IntRect anchorRectInScreen = m_chromeClient->rootViewToScreen(m_parameters.anchorRectInRootView);
String todayLabelString; String todayLabelString;
String otherDateLabelString; String otherDateLabelString;
if (m_parameters.type == blink::InputTypeNames::month) { if (m_parameters.type == InputTypeNames::month) {
todayLabelString = locale().queryString(WebLocalizedString::ThisMonthButtonLabel); todayLabelString = locale().queryString(WebLocalizedString::ThisMonthButtonLabel);
otherDateLabelString = locale().queryString(WebLocalizedString::OtherMonthLabel); otherDateLabelString = locale().queryString(WebLocalizedString::OtherMonthLabel);
} else if (m_parameters.type == blink::InputTypeNames::week) { } else if (m_parameters.type == InputTypeNames::week) {
todayLabelString = locale().queryString(WebLocalizedString::ThisWeekButtonLabel); todayLabelString = locale().queryString(WebLocalizedString::ThisWeekButtonLabel);
otherDateLabelString = locale().queryString(WebLocalizedString::OtherWeekLabel); otherDateLabelString = locale().queryString(WebLocalizedString::OtherWeekLabel);
} else { } else {
...@@ -117,10 +115,10 @@ void DateTimeChooserImpl::writeDocument(blink::SharedBuffer* data) ...@@ -117,10 +115,10 @@ void DateTimeChooserImpl::writeDocument(blink::SharedBuffer* data)
} }
addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data); addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data);
data->append(blink::Platform::current()->loadResource("pickerCommon.css")); data->append(Platform::current()->loadResource("pickerCommon.css"));
data->append(blink::Platform::current()->loadResource("pickerButton.css")); data->append(Platform::current()->loadResource("pickerButton.css"));
data->append(blink::Platform::current()->loadResource("suggestionPicker.css")); data->append(Platform::current()->loadResource("suggestionPicker.css"));
data->append(blink::Platform::current()->loadResource("calendarPicker.css")); data->append(Platform::current()->loadResource("calendarPicker.css"));
addString("</style></head><body><div id=main>Loading...</div><script>\n" addString("</style></head><body><div id=main>Loading...</div><script>\n"
"window.dialogArguments = {\n", data); "window.dialogArguments = {\n", data);
addProperty("anchorRectInScreen", anchorRectInScreen, data); addProperty("anchorRectInScreen", anchorRectInScreen, data);
...@@ -153,20 +151,20 @@ void DateTimeChooserImpl::writeDocument(blink::SharedBuffer* data) ...@@ -153,20 +151,20 @@ void DateTimeChooserImpl::writeDocument(blink::SharedBuffer* data)
addProperty("localizedSuggestionValues", localizedSuggestionValues, data); addProperty("localizedSuggestionValues", localizedSuggestionValues, data);
addProperty("suggestionLabels", suggestionLabels, data); addProperty("suggestionLabels", suggestionLabels, data);
addProperty("inputWidth", static_cast<unsigned>(m_parameters.anchorRectInRootView.width()), data); addProperty("inputWidth", static_cast<unsigned>(m_parameters.anchorRectInRootView.width()), data);
addProperty("showOtherDateEntry", blink::RenderTheme::theme().supportsCalendarPicker(m_parameters.type), data); addProperty("showOtherDateEntry", RenderTheme::theme().supportsCalendarPicker(m_parameters.type), data);
addProperty("otherDateLabel", otherDateLabelString, data); addProperty("otherDateLabel", otherDateLabelString, data);
addProperty("suggestionHighlightColor", blink::RenderTheme::theme().activeListBoxSelectionBackgroundColor().serialized(), data); addProperty("suggestionHighlightColor", RenderTheme::theme().activeListBoxSelectionBackgroundColor().serialized(), data);
addProperty("suggestionHighlightTextColor", blink::RenderTheme::theme().activeListBoxSelectionForegroundColor().serialized(), data); addProperty("suggestionHighlightTextColor", RenderTheme::theme().activeListBoxSelectionForegroundColor().serialized(), data);
} }
addString("}\n", data); addString("}\n", data);
data->append(blink::Platform::current()->loadResource("pickerCommon.js")); data->append(Platform::current()->loadResource("pickerCommon.js"));
data->append(blink::Platform::current()->loadResource("suggestionPicker.js")); data->append(Platform::current()->loadResource("suggestionPicker.js"));
data->append(blink::Platform::current()->loadResource("calendarPicker.js")); data->append(Platform::current()->loadResource("calendarPicker.js"));
addString("</script></body>\n", data); addString("</script></body>\n", data);
} }
blink::Locale& DateTimeChooserImpl::locale() Locale& DateTimeChooserImpl::locale()
{ {
return *m_locale; return *m_locale;
} }
......
...@@ -47,8 +47,6 @@ ...@@ -47,8 +47,6 @@
#include "wtf/Assertions.h" #include "wtf/Assertions.h"
#include "wtf/RefPtr.h" #include "wtf/RefPtr.h"
using namespace blink;
namespace blink { namespace blink {
DragDestinationAction DragClientImpl::actionMaskForDrag(DragData*) DragDestinationAction DragClientImpl::actionMaskForDrag(DragData*)
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
EditorClientImpl::EditorClientImpl(WebViewImpl* webview) EditorClientImpl::EditorClientImpl(WebViewImpl* webview)
...@@ -47,11 +45,11 @@ EditorClientImpl::~EditorClientImpl() ...@@ -47,11 +45,11 @@ EditorClientImpl::~EditorClientImpl()
{ {
} }
void EditorClientImpl::respondToChangedSelection(LocalFrame* frame, blink::SelectionType selectionType) void EditorClientImpl::respondToChangedSelection(LocalFrame* frame, SelectionType selectionType)
{ {
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
if (webFrame->client()) if (webFrame->client())
webFrame->client()->didChangeSelection(selectionType != blink::RangeSelection); webFrame->client()->didChangeSelection(selectionType != RangeSelection);
} }
void EditorClientImpl::respondToChangedContents() void EditorClientImpl::respondToChangedContents()
...@@ -81,4 +79,4 @@ bool EditorClientImpl::handleKeyboardEvent() ...@@ -81,4 +79,4 @@ bool EditorClientImpl::handleKeyboardEvent()
return m_webView->client() && m_webView->client()->handleCurrentKeyboardEvent(); return m_webView->client() && m_webView->client()->handleCurrentKeyboardEvent();
} }
} // namesace blink } // namespace blink
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#include "web/ChromeClientImpl.h" #include "web/ChromeClientImpl.h"
#include "wtf/text/AtomicString.h" #include "wtf/text/AtomicString.h"
using namespace blink;
namespace blink { namespace blink {
class WebDateTimeChooserCompletionImpl : public WebDateTimeChooserCompletion { class WebDateTimeChooserCompletionImpl : public WebDateTimeChooserCompletion {
...@@ -72,13 +70,13 @@ ExternalDateTimeChooser::~ExternalDateTimeChooser() ...@@ -72,13 +70,13 @@ ExternalDateTimeChooser::~ExternalDateTimeChooser()
{ {
} }
ExternalDateTimeChooser::ExternalDateTimeChooser(blink::DateTimeChooserClient* client) ExternalDateTimeChooser::ExternalDateTimeChooser(DateTimeChooserClient* client)
: m_client(client) : m_client(client)
{ {
ASSERT(client); ASSERT(client);
} }
PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> ExternalDateTimeChooser::create(ChromeClientImpl* chromeClient, WebViewClient* webViewClient, blink::DateTimeChooserClient* client, const blink::DateTimeChooserParameters& parameters) PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> ExternalDateTimeChooser::create(ChromeClientImpl* chromeClient, WebViewClient* webViewClient, DateTimeChooserClient* client, const DateTimeChooserParameters& parameters)
{ {
ASSERT(chromeClient); ASSERT(chromeClient);
RefPtrWillBeRawPtr<ExternalDateTimeChooser> chooser = adoptRefWillBeNoop(new ExternalDateTimeChooser(client)); RefPtrWillBeRawPtr<ExternalDateTimeChooser> chooser = adoptRefWillBeNoop(new ExternalDateTimeChooser(client));
...@@ -168,6 +166,6 @@ void ExternalDateTimeChooser::endChooser() ...@@ -168,6 +166,6 @@ void ExternalDateTimeChooser::endChooser()
client->didEndChooser(); client->didEndChooser();
} }
} } // namespace blink
#endif #endif
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include "public/web/WebViewClient.h" #include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
ExternalPopupMenu::ExternalPopupMenu(LocalFrame& frame, PopupMenuClient* popupMenuClient, WebViewImpl& webView) ExternalPopupMenu::ExternalPopupMenu(LocalFrame& frame, PopupMenuClient* popupMenuClient, WebViewImpl& webView)
...@@ -202,7 +200,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo* info) ...@@ -202,7 +200,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo* info)
popupItem.type = WebMenuItemInfo::Option; popupItem.type = WebMenuItemInfo::Option;
popupItem.enabled = m_popupMenuClient->itemIsEnabled(i); popupItem.enabled = m_popupMenuClient->itemIsEnabled(i);
popupItem.checked = m_popupMenuClient->itemIsSelected(i); popupItem.checked = m_popupMenuClient->itemIsSelected(i);
if (style.textDirection() == blink::RTL) if (style.textDirection() == RTL)
popupItem.textDirection = WebTextDirectionRightToLeft; popupItem.textDirection = WebTextDirectionRightToLeft;
else else
popupItem.textDirection = WebTextDirectionLeftToRight; popupItem.textDirection = WebTextDirectionLeftToRight;
...@@ -212,7 +210,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo* info) ...@@ -212,7 +210,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo* info)
info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().height(); info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().height();
info->itemFontSize = static_cast<int>(m_popupMenuClient->menuStyle().font().fontDescription().computedSize()); info->itemFontSize = static_cast<int>(m_popupMenuClient->menuStyle().font().fontDescription().computedSize());
info->selectedIndex = toExternalPopupMenuItemIndex(m_popupMenuClient->selectedIndex()); info->selectedIndex = toExternalPopupMenuItemIndex(m_popupMenuClient->selectedIndex());
info->rightAligned = m_popupMenuClient->menuStyle().textDirection() == blink::RTL; info->rightAligned = m_popupMenuClient->menuStyle().textDirection() == RTL;
info->allowMultipleSelection = m_popupMenuClient->multiple(); info->allowMultipleSelection = m_popupMenuClient->multiple();
info->items = items; info->items = items;
} }
...@@ -252,4 +250,4 @@ int ExternalPopupMenu::toExternalPopupMenuItemIndex(int popupMenuItemIndex) ...@@ -252,4 +250,4 @@ int ExternalPopupMenu::toExternalPopupMenuItemIndex(int popupMenuItemIndex)
return -1; return -1;
} }
} } // namespace blink
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include "platform/geometry/FloatQuad.h" #include "platform/geometry/FloatQuad.h"
#include "platform/geometry/IntPoint.h" #include "platform/geometry/IntPoint.h"
using namespace blink;
namespace blink { namespace blink {
static const RenderBlock* enclosingScrollableAncestor(const RenderObject* renderer) static const RenderBlock* enclosingScrollableAncestor(const RenderObject* renderer)
......
...@@ -97,8 +97,6 @@ ...@@ -97,8 +97,6 @@
#include "wtf/text/WTFString.h" #include "wtf/text/WTFString.h"
#include <v8.h> #include <v8.h>
using namespace blink;
namespace blink { namespace blink {
FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame) FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame)
...@@ -310,7 +308,7 @@ void FrameLoaderClientImpl::detachedFromParent() ...@@ -310,7 +308,7 @@ void FrameLoaderClientImpl::detachedFromParent()
m_webFrame->setClient(0); m_webFrame->setClient(0);
client->frameDetached(m_webFrame); client->frameDetached(m_webFrame);
// Clear our reference to blink::LocalFrame at the very end, in case the client // Clear our reference to LocalFrame at the very end, in case the client
// refers to it. // refers to it.
m_webFrame->setWebCoreFrame(nullptr); m_webFrame->setWebCoreFrame(nullptr);
} }
...@@ -341,7 +339,7 @@ void FrameLoaderClientImpl::dispatchDidReceiveResponse(DocumentLoader* loader, ...@@ -341,7 +339,7 @@ void FrameLoaderClientImpl::dispatchDidReceiveResponse(DocumentLoader* loader,
void FrameLoaderClientImpl::dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority priority, int intraPriorityValue) void FrameLoaderClientImpl::dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority priority, int intraPriorityValue)
{ {
if (m_webFrame->client()) if (m_webFrame->client())
m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier, static_cast<blink::WebURLRequest::Priority>(priority), intraPriorityValue); m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier, static_cast<WebURLRequest::Priority>(priority), intraPriorityValue);
} }
// Called when a particular resource load completes // Called when a particular resource load completes
...@@ -402,7 +400,7 @@ void FrameLoaderClientImpl::dispatchDidReceiveTitle(const String& title) ...@@ -402,7 +400,7 @@ void FrameLoaderClientImpl::dispatchDidReceiveTitle(const String& title)
m_webFrame->client()->didReceiveTitle(m_webFrame, title, WebTextDirectionLeftToRight); m_webFrame->client()->didReceiveTitle(m_webFrame, title, WebTextDirectionLeftToRight);
} }
void FrameLoaderClientImpl::dispatchDidChangeIcons(blink::IconType type) void FrameLoaderClientImpl::dispatchDidChangeIcons(IconType type)
{ {
if (m_webFrame->client()) if (m_webFrame->client())
m_webFrame->client()->didChangeIcon(m_webFrame, static_cast<WebIconURL::Type>(type)); m_webFrame->client()->didChangeIcon(m_webFrame, static_cast<WebIconURL::Type>(type));
...@@ -602,7 +600,7 @@ String FrameLoaderClientImpl::userAgent(const KURL& url) ...@@ -602,7 +600,7 @@ String FrameLoaderClientImpl::userAgent(const KURL& url)
if (!override.isEmpty()) if (!override.isEmpty())
return override; return override;
return blink::Platform::current()->userAgent(); return Platform::current()->userAgent();
} }
String FrameLoaderClientImpl::doNotTrackValue() String FrameLoaderClientImpl::doNotTrackValue()
...@@ -765,12 +763,12 @@ void FrameLoaderClientImpl::dispatchWillOpenSocketStream(SocketStreamHandle* han ...@@ -765,12 +763,12 @@ void FrameLoaderClientImpl::dispatchWillOpenSocketStream(SocketStreamHandle* han
m_webFrame->client()->willOpenSocketStream(SocketStreamHandleInternal::toWebSocketStreamHandle(handle)); m_webFrame->client()->willOpenSocketStream(SocketStreamHandleInternal::toWebSocketStreamHandle(handle));
} }
void FrameLoaderClientImpl::dispatchWillOpenWebSocket(blink::WebSocketHandle* handle) void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle)
{ {
m_webFrame->client()->willOpenWebSocket(handle); m_webFrame->client()->willOpenWebSocket(handle);
} }
void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(blink::WebRTCPeerConnectionHandler* handler) void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectionHandler* handler)
{ {
m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handler); m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handler);
} }
......
...@@ -42,8 +42,6 @@ ...@@ -42,8 +42,6 @@
#include "web/WebSettingsImpl.h" #include "web/WebSettingsImpl.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtr<FullscreenController> FullscreenController::create(WebViewImpl* webViewImpl) PassOwnPtr<FullscreenController> FullscreenController::create(WebViewImpl* webViewImpl)
...@@ -153,7 +151,7 @@ void FullscreenController::didExitFullScreen() ...@@ -153,7 +151,7 @@ void FullscreenController::didExitFullScreen()
m_fullScreenFrame.clear(); m_fullScreenFrame.clear();
} }
void FullscreenController::enterFullScreenForElement(blink::Element* element) void FullscreenController::enterFullScreenForElement(Element* element)
{ {
// We are already transitioning to fullscreen for a different element. // We are already transitioning to fullscreen for a different element.
if (m_provisionalFullScreenElement) { if (m_provisionalFullScreenElement) {
...@@ -176,7 +174,7 @@ void FullscreenController::enterFullScreenForElement(blink::Element* element) ...@@ -176,7 +174,7 @@ void FullscreenController::enterFullScreenForElement(blink::Element* element)
} }
} }
void FullscreenController::exitFullScreenForElement(blink::Element* element) void FullscreenController::exitFullScreenForElement(Element* element)
{ {
// The client is exiting full screen, so don't send a notification. // The client is exiting full screen, so don't send a notification.
if (m_isCancelingFullScreen) if (m_isCancelingFullScreen)
...@@ -185,5 +183,5 @@ void FullscreenController::exitFullScreenForElement(blink::Element* element) ...@@ -185,5 +183,5 @@ void FullscreenController::exitFullScreenForElement(blink::Element* element)
client->exitFullScreen(); client->exitFullScreen();
} }
} } // namespace blink
...@@ -43,7 +43,7 @@ GeolocationClientProxy::~GeolocationClientProxy() ...@@ -43,7 +43,7 @@ GeolocationClientProxy::~GeolocationClientProxy()
{ {
} }
void GeolocationClientProxy::setController(blink::GeolocationController* controller) void GeolocationClientProxy::setController(GeolocationController* controller)
{ {
// We support there not being a client, provided we don't do any Geolocation. // We support there not being a client, provided we don't do any Geolocation.
if (m_client) { if (m_client) {
...@@ -73,25 +73,25 @@ void GeolocationClientProxy::setEnableHighAccuracy(bool highAccuracy) ...@@ -73,25 +73,25 @@ void GeolocationClientProxy::setEnableHighAccuracy(bool highAccuracy)
m_client->setEnableHighAccuracy(highAccuracy); m_client->setEnableHighAccuracy(highAccuracy);
} }
blink::GeolocationPosition* GeolocationClientProxy::lastPosition() GeolocationPosition* GeolocationClientProxy::lastPosition()
{ {
WebGeolocationPosition webPosition; WebGeolocationPosition webPosition;
if (m_client->lastPosition(webPosition)) if (m_client->lastPosition(webPosition))
m_lastPosition = static_cast<blink::GeolocationPosition*>(webPosition); m_lastPosition = static_cast<GeolocationPosition*>(webPosition);
else else
m_lastPosition.clear(); m_lastPosition.clear();
return m_lastPosition.get(); return m_lastPosition.get();
} }
void GeolocationClientProxy::requestPermission(blink::Geolocation* geolocation) void GeolocationClientProxy::requestPermission(Geolocation* geolocation)
{ {
m_client->requestPermission(WebGeolocationPermissionRequest(geolocation)); m_client->requestPermission(WebGeolocationPermissionRequest(geolocation));
} }
void GeolocationClientProxy::cancelPermissionRequest(blink::Geolocation* geolocation) void GeolocationClientProxy::cancelPermissionRequest(Geolocation* geolocation)
{ {
m_client->cancelPermissionRequest(WebGeolocationPermissionRequest(geolocation)); m_client->cancelPermissionRequest(WebGeolocationPermissionRequest(geolocation));
} }
} } // namespace blink
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include "platform/graphics/GraphicsLayer.h" #include "platform/graphics/GraphicsLayer.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
GraphicsLayerFactoryChromium::GraphicsLayerFactoryChromium(WebViewImpl* webView) GraphicsLayerFactoryChromium::GraphicsLayerFactoryChromium(WebViewImpl* webView)
......
...@@ -39,9 +39,6 @@ ...@@ -39,9 +39,6 @@
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
#include "web/WorkerPermissionClient.h" #include "web/WorkerPermissionClient.h"
using namespace blink;
namespace blink { namespace blink {
IndexedDBClient* IndexedDBClientImpl::create() IndexedDBClient* IndexedDBClientImpl::create()
......
...@@ -45,8 +45,6 @@ ...@@ -45,8 +45,6 @@
#include "web/WebDevToolsAgentImpl.h" #include "web/WebDevToolsAgentImpl.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
InspectorClientImpl::InspectorClientImpl(WebViewImpl* webView) InspectorClientImpl::InspectorClientImpl(WebViewImpl* webView)
...@@ -71,7 +69,7 @@ void InspectorClientImpl::hideHighlight() ...@@ -71,7 +69,7 @@ void InspectorClientImpl::hideHighlight()
agent->hideHighlight(); agent->hideHighlight();
} }
void InspectorClientImpl::sendMessageToFrontend(PassRefPtr<blink::JSONObject> message) void InspectorClientImpl::sendMessageToFrontend(PassRefPtr<JSONObject> message)
{ {
if (WebDevToolsAgentImpl* agent = devToolsAgent()) if (WebDevToolsAgentImpl* agent = devToolsAgent())
agent->sendMessageToFrontend(message); agent->sendMessageToFrontend(message);
......
...@@ -42,8 +42,6 @@ ...@@ -42,8 +42,6 @@
#include "web/WebDevToolsFrontendImpl.h" #include "web/WebDevToolsFrontendImpl.h"
#include "wtf/text/WTFString.h" #include "wtf/text/WTFString.h"
using namespace blink;
namespace blink { namespace blink {
InspectorFrontendClientImpl::InspectorFrontendClientImpl(Page* frontendPage, WebDevToolsFrontendClient* client, WebDevToolsFrontendImpl* frontend) InspectorFrontendClientImpl::InspectorFrontendClientImpl(Page* frontendPage, WebDevToolsFrontendClient* client, WebDevToolsFrontendImpl* frontend)
......
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
#include "wtf/CurrentTime.h" #include "wtf/CurrentTime.h"
using namespace blink;
namespace blink { namespace blink {
class WebViewImpl; class WebViewImpl;
...@@ -360,4 +358,4 @@ WebLayer* LinkHighlight::layer() ...@@ -360,4 +358,4 @@ WebLayer* LinkHighlight::layer()
return clipLayer(); return clipLayer();
} }
} // namespace WeKit } // namespace blink
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
#include "web/WorkerPermissionClient.h" #include "web/WorkerPermissionClient.h"
#include "wtf/text/WTFString.h" #include "wtf/text/WTFString.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtr<FileSystemClient> LocalFileSystemClient::create() PassOwnPtr<FileSystemClient> LocalFileSystemClient::create()
...@@ -66,7 +64,7 @@ bool LocalFileSystemClient::requestFileSystemAccessSync(ExecutionContext* contex ...@@ -66,7 +64,7 @@ bool LocalFileSystemClient::requestFileSystemAccessSync(ExecutionContext* contex
return WorkerPermissionClient::from(*toWorkerGlobalScope(context))->requestFileSystemAccessSync(); return WorkerPermissionClient::from(*toWorkerGlobalScope(context))->requestFileSystemAccessSync();
} }
void LocalFileSystemClient::requestFileSystemAccessAsync(ExecutionContext* context, PassOwnPtr<blink::PermissionCallbacks> callbacks) void LocalFileSystemClient::requestFileSystemAccessAsync(ExecutionContext* context, PassOwnPtr<PermissionCallbacks> callbacks)
{ {
ASSERT(context); ASSERT(context);
if (!context->isDocument()) { if (!context->isDocument()) {
......
...@@ -42,7 +42,7 @@ MIDIClientProxy::MIDIClientProxy(WebMIDIClient* client) ...@@ -42,7 +42,7 @@ MIDIClientProxy::MIDIClientProxy(WebMIDIClient* client)
{ {
} }
void MIDIClientProxy::requestSysexPermission(blink::MIDIAccessInitializer* initializer) void MIDIClientProxy::requestSysexPermission(MIDIAccessInitializer* initializer)
{ {
if (m_client) if (m_client)
m_client->requestSysexPermission(WebMIDIPermissionRequest(initializer)); m_client->requestSysexPermission(WebMIDIPermissionRequest(initializer));
...@@ -50,7 +50,7 @@ void MIDIClientProxy::requestSysexPermission(blink::MIDIAccessInitializer* initi ...@@ -50,7 +50,7 @@ void MIDIClientProxy::requestSysexPermission(blink::MIDIAccessInitializer* initi
initializer->setSysexEnabled(false); initializer->setSysexEnabled(false);
} }
void MIDIClientProxy::cancelSysexPermissionRequest(blink::MIDIAccessInitializer* initializer) void MIDIClientProxy::cancelSysexPermissionRequest(MIDIAccessInitializer* initializer)
{ {
if (m_client) if (m_client)
m_client->cancelSysexPermissionRequest(WebMIDIPermissionRequest(initializer)); m_client->cancelSysexPermissionRequest(WebMIDIPermissionRequest(initializer));
......
...@@ -11,15 +11,13 @@ ...@@ -11,15 +11,13 @@
#include "public/web/WebFrameClient.h" #include "public/web/WebFrameClient.h"
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
using namespace blink;
namespace blink { namespace blink {
MediaKeysClientImpl::MediaKeysClientImpl() MediaKeysClientImpl::MediaKeysClientImpl()
{ {
} }
PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecryptionModule(blink::ExecutionContext* executionContext, const String& keySystem) PassOwnPtr<WebContentDecryptionModule> MediaKeysClientImpl::createContentDecryptionModule(ExecutionContext* executionContext, const String& keySystem)
{ {
Document* document = toDocument(executionContext); Document* document = toDocument(executionContext);
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()); WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#include "public/web/WebViewClient.h" #include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::create(WebViewImpl* webView) PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::create(WebViewImpl* webView)
...@@ -22,17 +20,17 @@ NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we ...@@ -22,17 +20,17 @@ NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
{ {
} }
void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url, const String& title) void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const KURL& baseURL, const KURL& url, const String& title)
{ {
m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
} }
NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url) NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const KURL& baseURL, const KURL& url)
{ {
return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
} }
void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const blink::KURL& baseURL, const blink::KURL& url) void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const KURL& baseURL, const KURL& url)
{ {
m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
} }
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
#include "public/web/WebViewClient.h" #include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
namespace { namespace {
...@@ -64,7 +62,7 @@ PageOverlay::PageOverlay(WebViewImpl* viewImpl, WebPageOverlay* overlay) ...@@ -64,7 +62,7 @@ PageOverlay::PageOverlay(WebViewImpl* viewImpl, WebPageOverlay* overlay)
{ {
} }
class OverlayGraphicsLayerClientImpl : public blink::GraphicsLayerClient { class OverlayGraphicsLayerClientImpl : public GraphicsLayerClient {
public: public:
static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* overlay) static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* overlay)
{ {
...@@ -102,7 +100,7 @@ void PageOverlay::clear() ...@@ -102,7 +100,7 @@ void PageOverlay::clear()
if (m_layer) { if (m_layer) {
m_layer->removeFromParent(); m_layer->removeFromParent();
if (blink::Page* page = m_viewImpl->page()) if (Page* page = m_viewImpl->page())
page->inspectorController().didRemovePageOverlay(m_layer.get()); page->inspectorController().didRemovePageOverlay(m_layer.get());
m_layer = nullptr; m_layer = nullptr;
m_layerClient = nullptr; m_layerClient = nullptr;
...@@ -118,7 +116,7 @@ void PageOverlay::update() ...@@ -118,7 +116,7 @@ void PageOverlay::update()
m_layer = GraphicsLayer::create(m_viewImpl->graphicsLayerFactory(), m_layerClient.get()); m_layer = GraphicsLayer::create(m_viewImpl->graphicsLayerFactory(), m_layerClient.get());
m_layer->setDrawsContent(true); m_layer->setDrawsContent(true);
if (blink::Page* page = m_viewImpl->page()) if (Page* page = m_viewImpl->page())
page->inspectorController().willAddPageOverlay(m_layer.get()); page->inspectorController().willAddPageOverlay(m_layer.get());
// This is required for contents of overlay to stay in sync with the page while scrolling. // This is required for contents of overlay to stay in sync with the page while scrolling.
......
...@@ -112,7 +112,7 @@ void PageOverlayList::update() ...@@ -112,7 +112,7 @@ void PageOverlayList::update()
m_pageOverlays[i]->update(); m_pageOverlays[i]->update();
} }
void PageOverlayList::paintWebFrame(blink::GraphicsContext& gc) void PageOverlayList::paintWebFrame(GraphicsContext& gc)
{ {
for (size_t i = 0; i < m_pageOverlays.size(); ++i) for (size_t i = 0; i < m_pageOverlays.size(); ++i)
m_pageOverlays[i]->paintWebFrame(gc); m_pageOverlays[i]->paintWebFrame(gc);
...@@ -127,7 +127,7 @@ size_t PageOverlayList::find(WebPageOverlay* overlay) ...@@ -127,7 +127,7 @@ size_t PageOverlayList::find(WebPageOverlay* overlay)
return WTF::kNotFound; return WTF::kNotFound;
} }
size_t PageOverlayList::findGraphicsLayer(blink::GraphicsLayer* layer) size_t PageOverlayList::findGraphicsLayer(GraphicsLayer* layer)
{ {
for (size_t i = 0; i < m_pageOverlays.size(); ++i) { for (size_t i = 0; i < m_pageOverlays.size(); ++i) {
if (m_pageOverlays[i]->graphicsLayer() == layer) if (m_pageOverlays[i]->graphicsLayer() == layer)
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "platform/Length.h" #include "platform/Length.h"
#include "wtf/Assertions.h" #include "wtf/Assertions.h"
using namespace blink;
namespace blink { namespace blink {
static const float defaultMinimumScale = 0.25f; static const float defaultMinimumScale = 0.25f;
......
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include "web/WebInputEventConversion.h" #include "web/WebInputEventConversion.h"
#include "wtf/CurrentTime.h" #include "wtf/CurrentTime.h"
using namespace blink;
namespace blink { namespace blink {
static inline FrameView* mainFrameView(Page* page) static inline FrameView* mainFrameView(Page* page)
...@@ -218,4 +216,4 @@ bool PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFrame, const WebTo ...@@ -218,4 +216,4 @@ bool PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFrame, const WebTo
return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(mainFrame.view(), event)); return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(mainFrame.view(), event));
} }
} } // namespace blink
...@@ -55,8 +55,6 @@ ...@@ -55,8 +55,6 @@
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
#include <limits> #include <limits>
using namespace blink;
namespace blink { namespace blink {
static const int borderSize = 1; static const int borderSize = 1;
...@@ -493,7 +491,7 @@ void PopupContainer::getPopupMenuInfo(WebPopupMenuInfo* info) ...@@ -493,7 +491,7 @@ void PopupContainer::getPopupMenuInfo(WebPopupMenuInfo* info)
outputItem.label = inputItem.label; outputItem.label = inputItem.label;
outputItem.enabled = inputItem.enabled; outputItem.enabled = inputItem.enabled;
if (inputItem.textDirection == blink::RTL) if (inputItem.textDirection == RTL)
outputItem.textDirection = WebTextDirectionRightToLeft; outputItem.textDirection = WebTextDirectionRightToLeft;
else else
outputItem.textDirection = WebTextDirectionLeftToRight; outputItem.textDirection = WebTextDirectionLeftToRight;
......
...@@ -57,8 +57,6 @@ ...@@ -57,8 +57,6 @@
#include "wtf/CurrentTime.h" #include "wtf/CurrentTime.h"
#include <limits> #include <limits>
using namespace blink;
namespace blink { namespace blink {
using namespace WTF::Unicode; using namespace WTF::Unicode;
......
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
#include "core/frame/Settings.h" #include "core/frame/Settings.h"
#include "web/PopupContainer.h" #include "web/PopupContainer.h"
using namespace blink;
namespace blink { namespace blink {
PopupMenuChromium::PopupMenuChromium(LocalFrame& frame, PopupMenuClient* client) PopupMenuChromium::PopupMenuChromium(LocalFrame& frame, PopupMenuClient* client)
......
...@@ -44,7 +44,7 @@ PrerendererClientImpl::PrerendererClientImpl(WebPrerendererClient* client) ...@@ -44,7 +44,7 @@ PrerendererClientImpl::PrerendererClientImpl(WebPrerendererClient* client)
{ {
} }
void PrerendererClientImpl::willAddPrerender(blink::Prerender* prerender) void PrerendererClientImpl::willAddPrerender(Prerender* prerender)
{ {
if (!m_client) if (!m_client)
return; return;
...@@ -52,4 +52,4 @@ void PrerendererClientImpl::willAddPrerender(blink::Prerender* prerender) ...@@ -52,4 +52,4 @@ void PrerendererClientImpl::willAddPrerender(blink::Prerender* prerender)
m_client->willAddPrerender(&webPrerender); m_client->willAddPrerender(&webPrerender);
} }
} } // namespace blink
...@@ -14,42 +14,42 @@ RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame) ...@@ -14,42 +14,42 @@ RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame)
{ {
} }
blink::Frame* RemoteFrameClient::opener() const Frame* RemoteFrameClient::opener() const
{ {
return toWebCoreFrame(m_webFrame->opener()); return toWebCoreFrame(m_webFrame->opener());
} }
void RemoteFrameClient::setOpener(blink::Frame*) void RemoteFrameClient::setOpener(Frame*)
{ {
// FIXME: Implement. // FIXME: Implement.
} }
blink::Frame* RemoteFrameClient::parent() const Frame* RemoteFrameClient::parent() const
{ {
return toWebCoreFrame(m_webFrame->parent()); return toWebCoreFrame(m_webFrame->parent());
} }
blink::Frame* RemoteFrameClient::top() const Frame* RemoteFrameClient::top() const
{ {
return toWebCoreFrame(m_webFrame->top()); return toWebCoreFrame(m_webFrame->top());
} }
blink::Frame* RemoteFrameClient::previousSibling() const Frame* RemoteFrameClient::previousSibling() const
{ {
return toWebCoreFrame(m_webFrame->previousSibling()); return toWebCoreFrame(m_webFrame->previousSibling());
} }
blink::Frame* RemoteFrameClient::nextSibling() const Frame* RemoteFrameClient::nextSibling() const
{ {
return toWebCoreFrame(m_webFrame->nextSibling()); return toWebCoreFrame(m_webFrame->nextSibling());
} }
blink::Frame* RemoteFrameClient::firstChild() const Frame* RemoteFrameClient::firstChild() const
{ {
return toWebCoreFrame(m_webFrame->firstChild()); return toWebCoreFrame(m_webFrame->firstChild());
} }
blink::Frame* RemoteFrameClient::lastChild() const Frame* RemoteFrameClient::lastChild() const
{ {
return toWebCoreFrame(m_webFrame->lastChild()); return toWebCoreFrame(m_webFrame->lastChild());
} }
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "public/platform/WebRect.h" #include "public/platform/WebRect.h"
#include "web/WebPluginScrollbarImpl.h" #include "web/WebPluginScrollbarImpl.h"
using namespace blink;
namespace blink { namespace blink {
ScrollbarGroup::ScrollbarGroup(FrameView* frameView, const IntRect& frameRect) ScrollbarGroup::ScrollbarGroup(FrameView* frameView, const IntRect& frameRect)
...@@ -91,7 +89,7 @@ void ScrollbarGroup::setLastMousePosition(const IntPoint& point) ...@@ -91,7 +89,7 @@ void ScrollbarGroup::setLastMousePosition(const IntPoint& point)
m_lastMousePosition = point; m_lastMousePosition = point;
} }
int ScrollbarGroup::scrollSize(blink::ScrollbarOrientation orientation) const int ScrollbarGroup::scrollSize(ScrollbarOrientation orientation) const
{ {
WebPluginScrollbarImpl* webScrollbar = orientation == HorizontalScrollbar ? m_horizontalScrollbar : m_verticalScrollbar; WebPluginScrollbarImpl* webScrollbar = orientation == HorizontalScrollbar ? m_horizontalScrollbar : m_verticalScrollbar;
if (!webScrollbar) if (!webScrollbar)
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include "public/web/WebServiceWorkerContextClient.h" #include "public/web/WebServiceWorkerContextClient.h"
#include "wtf/PassOwnPtr.h" #include "wtf/PassOwnPtr.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtrWillBeRawPtr<ServiceWorkerGlobalScopeClient> ServiceWorkerGlobalScopeClientImpl::create(WebServiceWorkerContextClient& client) PassOwnPtrWillBeRawPtr<ServiceWorkerGlobalScopeClient> ServiceWorkerGlobalScopeClientImpl::create(WebServiceWorkerContextClient& client)
......
...@@ -51,8 +51,6 @@ ...@@ -51,8 +51,6 @@
#include "wtf/Functional.h" #include "wtf/Functional.h"
#include "wtf/PassOwnPtr.h" #include "wtf/PassOwnPtr.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(WebEmbeddedWorkerImpl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextClient& client) PassOwnPtr<ServiceWorkerGlobalScopeProxy> ServiceWorkerGlobalScopeProxy::create(WebEmbeddedWorkerImpl& embeddedWorker, ExecutionContext& executionContext, WebServiceWorkerContextClient& client)
......
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
#include "public/web/WebSharedWorkerRepositoryClient.h" #include "public/web/WebSharedWorkerRepositoryClient.h"
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
using namespace blink;
namespace blink { namespace blink {
// Callback class that keeps the SharedWorker and WebSharedWorker objects alive while connecting. // Callback class that keeps the SharedWorker and WebSharedWorker objects alive while connecting.
...@@ -118,7 +116,7 @@ void SharedWorkerRepositoryClientImpl::connect(PassRefPtrWillBeRawPtr<SharedWork ...@@ -118,7 +116,7 @@ void SharedWorkerRepositoryClientImpl::connect(PassRefPtrWillBeRawPtr<SharedWork
// No nested workers (for now) - connect() should only be called from document context. // No nested workers (for now) - connect() should only be called from document context.
ASSERT(worker->executionContext()->isDocument()); ASSERT(worker->executionContext()->isDocument());
Document* document = toDocument(worker->executionContext()); Document* document = toDocument(worker->executionContext());
OwnPtr<WebSharedWorkerConnector> webWorkerConnector = adoptPtr(m_client->createSharedWorkerConnector(url, name, getId(document), worker->executionContext()->contentSecurityPolicy()->deprecatedHeader(), static_cast<blink::WebContentSecurityPolicyType>(worker->executionContext()->contentSecurityPolicy()->deprecatedHeaderType()))); OwnPtr<WebSharedWorkerConnector> webWorkerConnector = adoptPtr(m_client->createSharedWorkerConnector(url, name, getId(document), worker->executionContext()->contentSecurityPolicy()->deprecatedHeader(), static_cast<WebContentSecurityPolicyType>(worker->executionContext()->contentSecurityPolicy()->deprecatedHeaderType())));
if (!webWorkerConnector) { if (!webWorkerConnector) {
// Existing worker does not match this url, so return an error back to the caller. // Existing worker does not match this url, so return an error back to the caller.
exceptionState.throwDOMException(URLMismatchError, "The location of the SharedWorker named '" + name + "' does not exactly match the provided URL ('" + url.elidedString() + "')."); exceptionState.throwDOMException(URLMismatchError, "The location of the SharedWorker named '" + name + "' does not exactly match the provided URL ('" + url.elidedString() + "').");
......
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
#include "public/web/WebSpeechRecognizer.h" #include "public/web/WebSpeechRecognizer.h"
#include "wtf/PassRefPtr.h" #include "wtf/PassRefPtr.h"
using namespace blink;
namespace blink { namespace blink {
SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy() SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy()
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include "web/WebTextCheckingCompletionImpl.h" #include "web/WebTextCheckingCompletionImpl.h"
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
using namespace blink;
namespace blink { namespace blink {
SpellCheckerClientImpl::SpellCheckerClientImpl(WebViewImpl* webview) SpellCheckerClientImpl::SpellCheckerClientImpl(WebViewImpl* webview)
...@@ -151,7 +149,7 @@ void SpellCheckerClientImpl::checkSpellingOfString(const String& text, int* miss ...@@ -151,7 +149,7 @@ void SpellCheckerClientImpl::checkSpellingOfString(const String& text, int* miss
*misspellingLength = spellLength; *misspellingLength = spellLength;
} }
void SpellCheckerClientImpl::requestCheckingOfString(WTF::PassRefPtr<blink::TextCheckingRequest> request) void SpellCheckerClientImpl::requestCheckingOfString(WTF::PassRefPtr<TextCheckingRequest> request)
{ {
if (m_webView->spellCheckClient()) { if (m_webView->spellCheckClient()) {
const String& text = request->data().text(); const String& text = request->data().text();
...@@ -232,4 +230,4 @@ bool SpellCheckerClientImpl::spellingUIIsShowing() ...@@ -232,4 +230,4 @@ bool SpellCheckerClientImpl::spellingUIIsShowing()
return false; return false;
} }
} // namesace WebKit } // namespace blink
...@@ -40,15 +40,15 @@ StorageClientImpl::StorageClientImpl(WebViewImpl* webView) ...@@ -40,15 +40,15 @@ StorageClientImpl::StorageClientImpl(WebViewImpl* webView)
{ {
} }
PassOwnPtr<blink::StorageNamespace> StorageClientImpl::createSessionStorageNamespace() PassOwnPtr<StorageNamespace> StorageClientImpl::createSessionStorageNamespace()
{ {
return adoptPtr(new blink::StorageNamespace(adoptPtr(m_webView->client()->createSessionStorageNamespace()))); return adoptPtr(new StorageNamespace(adoptPtr(m_webView->client()->createSessionStorageNamespace())));
} }
bool StorageClientImpl::canAccessStorage(blink::LocalFrame* frame, blink::StorageType type) const bool StorageClientImpl::canAccessStorage(LocalFrame* frame, StorageType type) const
{ {
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
return !webFrame->permissionClient() || webFrame->permissionClient()->allowStorage(type == blink::LocalStorage); return !webFrame->permissionClient() || webFrame->permissionClient()->allowStorage(type == LocalStorage);
} }
} // namespace blink } // namespace blink
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
#include "wtf/Threading.h" #include "wtf/Threading.h"
using namespace blink;
namespace blink { namespace blink {
PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> StorageQuotaClientImpl::create() PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> StorageQuotaClientImpl::create()
......
...@@ -51,8 +51,6 @@ ...@@ -51,8 +51,6 @@
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
#include "wtf/CurrentTime.h" #include "wtf/CurrentTime.h"
using namespace blink;
namespace blink { namespace blink {
TextFinder::FindMatch::FindMatch(PassRefPtrWillBeRawPtr<Range> range, int ordinal) TextFinder::FindMatch::FindMatch(PassRefPtrWillBeRawPtr<Range> range, int ordinal)
...@@ -61,7 +59,7 @@ TextFinder::FindMatch::FindMatch(PassRefPtrWillBeRawPtr<Range> range, int ordina ...@@ -61,7 +59,7 @@ TextFinder::FindMatch::FindMatch(PassRefPtrWillBeRawPtr<Range> range, int ordina
{ {
} }
void TextFinder::FindMatch::trace(blink::Visitor* visitor) void TextFinder::FindMatch::trace(Visitor* visitor)
{ {
visitor->trace(m_range); visitor->trace(m_range);
} }
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
#include "wtf/RefPtr.h" #include "wtf/RefPtr.h"
using namespace blink;
namespace blink { namespace blink {
UserMediaClientImpl::UserMediaClientImpl(WebLocalFrameImpl* webFrame) UserMediaClientImpl::UserMediaClientImpl(WebLocalFrameImpl* webFrame)
......
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
#include "web/WebViewImpl.h" #include "web/WebViewImpl.h"
#include "wtf/CurrentTime.h" #include "wtf/CurrentTime.h"
using namespace blink;
namespace blink { namespace blink {
ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView) ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView)
...@@ -152,4 +150,4 @@ void ValidationMessageClientImpl::trace(Visitor* visitor) ...@@ -152,4 +150,4 @@ void ValidationMessageClientImpl::trace(Visitor* visitor)
ValidationMessageClient::trace(visitor); ValidationMessageClient::trace(visitor);
} }
} } // namespace blink
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
#include "core/page/EventHandler.h" #include "core/page/EventHandler.h"
#include "core/rendering/HitTestResult.h" #include "core/rendering/HitTestResult.h"
using namespace blink;
namespace blink { namespace blink {
namespace { namespace {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment