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

Unified Diff: Source/web/PopupContainer.h

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/PageWidgetDelegate.cpp ('k') | Source/web/PopupContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PopupContainer.h
diff --git a/Source/web/PopupContainer.h b/Source/web/PopupContainer.h
index 83aa775a466c8a902ebf6a7f9bfa2f355e92815f..6386322fe9447c3008623313fec5dc19f140fbe1 100644
--- a/Source/web/PopupContainer.h
+++ b/Source/web/PopupContainer.h
@@ -36,7 +36,7 @@
#include "platform/scroll/FramelessScrollView.h"
#include "web/PopupListBox.h"
-namespace WebCore {
+namespace blink {
class ChromeClient;
class FrameView;
class PopupMenuClient;
@@ -46,35 +46,35 @@ namespace blink {
struct WebPopupMenuInfo;
-class PopupContainer FINAL : public WebCore::FramelessScrollView {
+class PopupContainer FINAL : public blink::FramelessScrollView {
public:
- static PassRefPtr<PopupContainer> create(WebCore::PopupMenuClient*, bool deviceSupportsTouch);
+ static PassRefPtr<PopupContainer> create(blink::PopupMenuClient*, bool deviceSupportsTouch);
// Whether a key event should be sent to this popup.
bool isInterestedInEventForKey(int keyCode);
// FramelessScrollView
- virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERRIDE;
+ virtual void paint(blink::GraphicsContext*, const blink::IntRect&) OVERRIDE;
virtual void hide() OVERRIDE;
- virtual bool handleMouseDownEvent(const WebCore::PlatformMouseEvent&) OVERRIDE;
- virtual bool handleMouseMoveEvent(const WebCore::PlatformMouseEvent&) OVERRIDE;
- virtual bool handleMouseReleaseEvent(const WebCore::PlatformMouseEvent&) OVERRIDE;
- virtual bool handleWheelEvent(const WebCore::PlatformWheelEvent&) OVERRIDE;
- virtual bool handleKeyEvent(const WebCore::PlatformKeyboardEvent&) OVERRIDE;
- virtual bool handleTouchEvent(const WebCore::PlatformTouchEvent&) OVERRIDE;
- virtual bool handleGestureEvent(const WebCore::PlatformGestureEvent&) OVERRIDE;
+ virtual bool handleMouseDownEvent(const blink::PlatformMouseEvent&) OVERRIDE;
+ virtual bool handleMouseMoveEvent(const blink::PlatformMouseEvent&) OVERRIDE;
+ virtual bool handleMouseReleaseEvent(const blink::PlatformMouseEvent&) OVERRIDE;
+ virtual bool handleWheelEvent(const blink::PlatformWheelEvent&) OVERRIDE;
+ virtual bool handleKeyEvent(const blink::PlatformKeyboardEvent&) OVERRIDE;
+ virtual bool handleTouchEvent(const blink::PlatformTouchEvent&) OVERRIDE;
+ virtual bool handleGestureEvent(const blink::PlatformGestureEvent&) OVERRIDE;
// PopupContainer methods
// Show the popup
- void showPopup(WebCore::FrameView*);
+ void showPopup(blink::FrameView*);
// Show the popup in the specified rect for the specified frame.
// Note: this code was somehow arbitrarily factored-out of the Popup class
// so WebViewImpl can create a PopupContainer. This method is used for
// displaying auto complete popup menus on Mac Chromium, and for all
// popups on other platforms.
- void showInRect(const WebCore::FloatQuad& controlPosition, const WebCore::IntSize& controlSize, WebCore::FrameView*, int index);
+ void showInRect(const blink::FloatQuad& controlPosition, const blink::IntSize& controlSize, blink::FrameView*, int index);
// Hides the popup.
void hidePopup();
@@ -91,7 +91,7 @@ public:
int selectedIndex() const;
// Refresh the popup values from the PopupMenuClient.
- WebCore::IntRect refresh(const WebCore::IntRect& targetControlRect);
+ blink::IntRect refresh(const blink::IntRect& targetControlRect);
// The menu per-item data.
const Vector<PopupItem*>& popupData() const;
@@ -103,36 +103,36 @@ public:
int menuItemFontSize() const;
// The style of the menu being used.
- WebCore::PopupMenuStyle menuStyle() const;
+ blink::PopupMenuStyle menuStyle() const;
// While hovering popup menu window, we want to show tool tip message.
String getSelectedItemToolTip();
// This is public for testing.
- static WebCore::IntRect layoutAndCalculateWidgetRectInternal(WebCore::IntRect widgetRectInScreen, int targetControlHeight, const WebCore::FloatRect& windowRect, const WebCore::FloatRect& screen, bool isRTL, const int rtlOffset, const int verticalOffset, const WebCore::IntSize& transformOffset, PopupContent*, bool& needToResizeView);
+ static blink::IntRect layoutAndCalculateWidgetRectInternal(blink::IntRect widgetRectInScreen, int targetControlHeight, const blink::FloatRect& windowRect, const blink::FloatRect& screen, bool isRTL, const int rtlOffset, const int verticalOffset, const blink::IntSize& transformOffset, PopupContent*, bool& needToResizeView);
private:
friend class WTF::RefCounted<PopupContainer>;
- PopupContainer(WebCore::PopupMenuClient*, bool deviceSupportsTouch);
+ PopupContainer(blink::PopupMenuClient*, bool deviceSupportsTouch);
virtual ~PopupContainer();
// Paint the border.
- void paintBorder(WebCore::GraphicsContext*, const WebCore::IntRect&);
+ void paintBorder(blink::GraphicsContext*, const blink::IntRect&);
// Layout and calculate popup widget size and location and returns it as IntRect.
- WebCore::IntRect layoutAndCalculateWidgetRect(int targetControlHeight, const WebCore::IntSize& transformOffset, const WebCore::IntPoint& popupInitialCoordinate);
+ blink::IntRect layoutAndCalculateWidgetRect(int targetControlHeight, const blink::IntSize& transformOffset, const blink::IntPoint& popupInitialCoordinate);
void fitToListBox();
- void popupOpened(const WebCore::IntRect& bounds);
+ void popupOpened(const blink::IntRect& bounds);
void getPopupMenuInfo(WebPopupMenuInfo*);
// Returns the ChromeClient of the page this popup is associated with.
- WebCore::ChromeClient& chromeClient();
+ blink::ChromeClient& chromeClient();
RefPtr<PopupListBox> m_listBox;
- RefPtr<WebCore::FrameView> m_frameView;
+ RefPtr<blink::FrameView> m_frameView;
// m_controlPosition contains the transformed position of the
// <select>/<input> associated with this popup. m_controlSize is the size
@@ -146,13 +146,13 @@ private:
// of m_controlPosition (p3)
// If the popup is positioned up it will align with the top right of
// m_controlPosition (p2)
- WebCore::FloatQuad m_controlPosition;
- WebCore::IntSize m_controlSize;
+ blink::FloatQuad m_controlPosition;
+ blink::IntSize m_controlSize;
// Whether the popup is currently open.
bool m_popupOpen;
};
-} // namespace WebCore
+} // namespace blink
#endif
« no previous file with comments | « Source/web/PageWidgetDelegate.cpp ('k') | Source/web/PopupContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698