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

Side by Side Diff: Source/web/WebViewImpl.h

Issue 1142303005: Remove legacy SELECT popup code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPopupMenuImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 namespace blink { 66 namespace blink {
67 67
68 class DataObject; 68 class DataObject;
69 class DevToolsEmulator; 69 class DevToolsEmulator;
70 class Frame; 70 class Frame;
71 class FullscreenController; 71 class FullscreenController;
72 class InspectorOverlay; 72 class InspectorOverlay;
73 class InspectorOverlayImpl; 73 class InspectorOverlayImpl;
74 class LinkHighlight; 74 class LinkHighlight;
75 class PageScaleConstraintsSet; 75 class PageScaleConstraintsSet;
76 class PopupContainer;
77 class DeprecatedPaintLayerCompositor; 76 class DeprecatedPaintLayerCompositor;
78 class TopControls; 77 class TopControls;
79 class UserGestureToken; 78 class UserGestureToken;
80 class WebActiveGestureAnimation; 79 class WebActiveGestureAnimation;
81 class WebCompositorAnimationTimeline; 80 class WebCompositorAnimationTimeline;
82 class WebDevToolsAgentImpl; 81 class WebDevToolsAgentImpl;
83 class WebElement; 82 class WebElement;
84 class WebLayerTreeView; 83 class WebLayerTreeView;
85 class WebLocalFrameImpl; 84 class WebLocalFrameImpl;
86 class WebImage; 85 class WebImage;
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 void updatePageDefinedViewportConstraints(const ViewportDescription&); 418 void updatePageDefinedViewportConstraints(const ViewportDescription&);
420 419
421 // Start a system drag and drop operation. 420 // Start a system drag and drop operation.
422 void startDragging( 421 void startDragging(
423 LocalFrame*, 422 LocalFrame*,
424 const WebDragData& dragData, 423 const WebDragData& dragData,
425 WebDragOperationsMask mask, 424 WebDragOperationsMask mask,
426 const WebImage& dragImage, 425 const WebImage& dragImage,
427 const WebPoint& dragImageOffset); 426 const WebPoint& dragImageOffset);
428 427
429 // Notification that a popup was opened/closed.
430 void popupOpened(PopupContainer*);
431 void popupClosed(PopupContainer*);
432 PagePopup* openPagePopup(PagePopupClient*); 428 PagePopup* openPagePopup(PagePopupClient*);
433 void closePagePopup(PagePopup*); 429 void closePagePopup(PagePopup*);
434 LocalDOMWindow* pagePopupWindow() const; 430 LocalDOMWindow* pagePopupWindow() const;
435 431
436 // Returns the input event we're currently processing. This is used in some 432 // Returns the input event we're currently processing. This is used in some
437 // cases where the WebCore DOM event doesn't have the information we need. 433 // cases where the WebCore DOM event doesn't have the information we need.
438 static const WebInputEvent* currentInputEvent() 434 static const WebInputEvent* currentInputEvent()
439 { 435 {
440 return m_currentInputEvent; 436 return m_currentInputEvent;
441 } 437 }
442 438
443 GraphicsLayer* rootGraphicsLayer(); 439 GraphicsLayer* rootGraphicsLayer();
444 void setRootGraphicsLayer(GraphicsLayer*); 440 void setRootGraphicsLayer(GraphicsLayer*);
445 void scheduleCompositingLayerSync(); 441 void scheduleCompositingLayerSync();
446 GraphicsLayerFactory* graphicsLayerFactory() const; 442 GraphicsLayerFactory* graphicsLayerFactory() const;
447 DeprecatedPaintLayerCompositor* compositor() const; 443 DeprecatedPaintLayerCompositor* compositor() const;
448 void registerForAnimations(WebLayer*); 444 void registerForAnimations(WebLayer*);
449 void scheduleAnimation(); 445 void scheduleAnimation();
450 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); 446 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*);
451 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); 447 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*);
452 448
453 virtual void setVisibilityState(WebPageVisibilityState, bool) override; 449 virtual void setVisibilityState(WebPageVisibilityState, bool) override;
454 450
455 PopupContainer* selectPopup() const { return m_selectPopup.get(); } 451 bool hasOpenedPopup() const { return m_pagePopup; }
456 bool hasOpenedPopup() const { return m_selectPopup || m_pagePopup; }
457 452
458 // Returns true if the event leads to scrolling. 453 // Returns true if the event leads to scrolling.
459 static bool mapKeyCodeForScroll( 454 static bool mapKeyCodeForScroll(
460 int keyCode, 455 int keyCode,
461 ScrollDirectionPhysical*, 456 ScrollDirectionPhysical*,
462 ScrollGranularity*); 457 ScrollGranularity*);
463 458
464 // Called by a full frame plugin inside this view to inform it that its 459 // Called by a full frame plugin inside this view to inform it that its
465 // zoom level has been updated. The plugin should only call this function 460 // zoom level has been updated. The plugin should only call this function
466 // if the zoom change was triggered by the browser, it's only needed in case 461 // if the zoom change was triggered by the browser, it's only needed in case
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 bool m_imeAcceptEvents; 697 bool m_imeAcceptEvents;
703 698
704 // The available drag operations (copy, move link...) allowed by the source. 699 // The available drag operations (copy, move link...) allowed by the source.
705 WebDragOperation m_operationsAllowed; 700 WebDragOperation m_operationsAllowed;
706 701
707 // The current drag operation as negotiated by the source and destination. 702 // The current drag operation as negotiated by the source and destination.
708 // When not equal to DragOperationNone, the drag data can be dropped onto th e 703 // When not equal to DragOperationNone, the drag data can be dropped onto th e
709 // current drop target in this WebView (the drop target can accept the drop) . 704 // current drop target in this WebView (the drop target can accept the drop) .
710 WebDragOperation m_dragOperation; 705 WebDragOperation m_dragOperation;
711 706
712 // The popup associated with a select element. 707 // The popup associated with an input/select element.
713 RefPtrWillBePersistent<PopupContainer> m_selectPopup;
714
715 // The popup associated with an input element.
716 RefPtr<WebPagePopupImpl> m_pagePopup; 708 RefPtr<WebPagePopupImpl> m_pagePopup;
717 709
718 OwnPtrWillBePersistent<InspectorOverlayImpl> m_inspectorOverlay; 710 OwnPtrWillBePersistent<InspectorOverlayImpl> m_inspectorOverlay;
719 OwnPtr<DevToolsEmulator> m_devToolsEmulator; 711 OwnPtr<DevToolsEmulator> m_devToolsEmulator;
720 OwnPtr<PageOverlayList> m_pageOverlays; 712 OwnPtr<PageOverlayList> m_pageOverlays;
721 713
722 // Whether the webview is rendering transparently. 714 // Whether the webview is rendering transparently.
723 bool m_isTransparent; 715 bool m_isTransparent;
724 716
725 // Whether the user can press tab to focus links. 717 // Whether the user can press tab to focus links.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 }; 756 };
765 757
766 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 758 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
767 // We have no ways to check if the specified WebView is an instance of 759 // We have no ways to check if the specified WebView is an instance of
768 // WebViewImpl because WebViewImpl is the only implementation of WebView. 760 // WebViewImpl because WebViewImpl is the only implementation of WebView.
769 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
770 762
771 } // namespace blink 763 } // namespace blink
772 764
773 #endif 765 #endif
OLDNEW
« no previous file with comments | « Source/web/WebPopupMenuImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698