Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2159)

Unified Diff: Source/web/ExternalPopupMenu.cpp

Issue 462353003: Cleanup namespace usage in Source/web[A-V]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor updates Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/ExternalDateTimeChooser.cpp ('k') | Source/web/FindInPageCoordinates.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ExternalPopupMenu.cpp
diff --git a/Source/web/ExternalPopupMenu.cpp b/Source/web/ExternalPopupMenu.cpp
index f2252ba3bd196b8381782cf01892fa21aef8d734..c4b89a3e675781c7e35d6e4372cc75c84bbdb704 100644
--- a/Source/web/ExternalPopupMenu.cpp
+++ b/Source/web/ExternalPopupMenu.cpp
@@ -44,8 +44,6 @@
#include "public/web/WebViewClient.h"
#include "web/WebViewImpl.h"
-using namespace blink;
-
namespace blink {
ExternalPopupMenu::ExternalPopupMenu(LocalFrame& frame, PopupMenuClient* popupMenuClient, WebViewImpl& webView)
@@ -202,7 +200,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo* info)
popupItem.type = WebMenuItemInfo::Option;
popupItem.enabled = m_popupMenuClient->itemIsEnabled(i);
popupItem.checked = m_popupMenuClient->itemIsSelected(i);
- if (style.textDirection() == blink::RTL)
+ if (style.textDirection() == RTL)
popupItem.textDirection = WebTextDirectionRightToLeft;
else
popupItem.textDirection = WebTextDirectionLeftToRight;
@@ -212,7 +210,7 @@ void ExternalPopupMenu::getPopupMenuInfo(WebPopupMenuInfo* info)
info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().height();
info->itemFontSize = static_cast<int>(m_popupMenuClient->menuStyle().font().fontDescription().computedSize());
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->items = items;
}
@@ -252,4 +250,4 @@ int ExternalPopupMenu::toExternalPopupMenuItemIndex(int popupMenuItemIndex)
return -1;
}
-}
+} // namespace blink
« no previous file with comments | « Source/web/ExternalDateTimeChooser.cpp ('k') | Source/web/FindInPageCoordinates.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698