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

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

Issue 1264483002: PageOverlays: Remove PageOverlayList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move WebPageOverlay to PageOverlay Created 5 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 unified diff | Download patch | Annotate | Revision Log
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "public/platform/WebString.h" 48 #include "public/platform/WebString.h"
49 #include "public/platform/WebVector.h" 49 #include "public/platform/WebVector.h"
50 #include "public/web/WebInputEvent.h" 50 #include "public/web/WebInputEvent.h"
51 #include "public/web/WebNavigationPolicy.h" 51 #include "public/web/WebNavigationPolicy.h"
52 #include "public/web/WebView.h" 52 #include "public/web/WebView.h"
53 #include "web/ChromeClientImpl.h" 53 #include "web/ChromeClientImpl.h"
54 #include "web/ContextMenuClientImpl.h" 54 #include "web/ContextMenuClientImpl.h"
55 #include "web/DragClientImpl.h" 55 #include "web/DragClientImpl.h"
56 #include "web/EditorClientImpl.h" 56 #include "web/EditorClientImpl.h"
57 #include "web/MediaKeysClientImpl.h" 57 #include "web/MediaKeysClientImpl.h"
58 #include "web/PageOverlayList.h" 58 #include "web/PageOverlay.h"
dgozman 2015/07/30 10:17:31 Forward-declare it.
sergeyv 2015/07/30 11:42:37 Done.
59 #include "web/PageWidgetDelegate.h" 59 #include "web/PageWidgetDelegate.h"
60 #include "web/SpellCheckerClientImpl.h" 60 #include "web/SpellCheckerClientImpl.h"
61 #include "web/StorageClientImpl.h" 61 #include "web/StorageClientImpl.h"
62 #include "wtf/HashSet.h" 62 #include "wtf/HashSet.h"
63 #include "wtf/OwnPtr.h" 63 #include "wtf/OwnPtr.h"
64 #include "wtf/RefCounted.h" 64 #include "wtf/RefCounted.h"
65 #include "wtf/Vector.h" 65 #include "wtf/Vector.h"
66 66
67 namespace blink { 67 namespace blink {
68 68
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void disableDeviceEmulation() override; 251 void disableDeviceEmulation() override;
252 WebAXObject accessibilityObject() override; 252 WebAXObject accessibilityObject() override;
253 void setSelectionColors(unsigned activeBackgroundColor, 253 void setSelectionColors(unsigned activeBackgroundColor,
254 unsigned activeForegroundColor, 254 unsigned activeForegroundColor,
255 unsigned inactiveBackgroundColor, 255 unsigned inactiveBackgroundColor,
256 unsigned inactiveForegroundColor) override; 256 unsigned inactiveForegroundColor) override;
257 void performCustomContextMenuAction(unsigned action) override; 257 void performCustomContextMenuAction(unsigned action) override;
258 void showContextMenu() override; 258 void showContextMenu() override;
259 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid e; 259 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid e;
260 void hidePopups() override; 260 void hidePopups() override;
261 void addPageOverlay(WebPageOverlay*, int /* zOrder */) override;
262 void setPageOverlayColor(WebColor) override; 261 void setPageOverlayColor(WebColor) override;
263 void removePageOverlay(WebPageOverlay*) override;
264 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) override; 262 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) override;
265 bool endActiveFlingAnimation() override; 263 bool endActiveFlingAnimation() override;
266 void setShowPaintRects(bool) override; 264 void setShowPaintRects(bool) override;
267 void setShowDebugBorders(bool); 265 void setShowDebugBorders(bool);
268 void setShowFPSCounter(bool) override; 266 void setShowFPSCounter(bool) override;
269 void setContinuousPaintingEnabled(bool) override; 267 void setContinuousPaintingEnabled(bool) override;
270 void setShowScrollBottleneckRects(bool) override; 268 void setShowScrollBottleneckRects(bool) override;
271 void acceptLanguagesChanged() override; 269 void acceptLanguagesChanged() override;
272 270
273 // WebViewImpl 271 // WebViewImpl
(...skipping 14 matching lines...) Expand all
288 void setBackgroundColorOverride(WebColor); 286 void setBackgroundColorOverride(WebColor);
289 void setZoomFactorOverride(float); 287 void setZoomFactorOverride(float);
290 void updateShowFPSCounterAndContinuousPainting(); 288 void updateShowFPSCounterAndContinuousPainting();
291 void setCompositorDeviceScaleFactorOverride(float); 289 void setCompositorDeviceScaleFactorOverride(float);
292 void setRootLayerTransform(const WebSize& offset, float scale); 290 void setRootLayerTransform(const WebSize& offset, float scale);
293 291
294 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 292 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
295 293
296 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 294 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
297 295
298 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); }
299
300 void setOverlayLayer(GraphicsLayer*); 296 void setOverlayLayer(GraphicsLayer*);
301 297
302 const WebPoint& lastMouseDownPoint() const 298 const WebPoint& lastMouseDownPoint() const
303 { 299 {
304 return m_lastMouseDownPoint; 300 return m_lastMouseDownPoint;
305 } 301 }
306 302
307 Frame* focusedCoreFrame() const; 303 Frame* focusedCoreFrame() const;
308 304
309 // Returns the currently focused Element or null if no element has focus. 305 // Returns the currently focused Element or null if no element has focus.
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // The current drag operation as negotiated by the source and destination. 699 // The current drag operation as negotiated by the source and destination.
704 // When not equal to DragOperationNone, the drag data can be dropped onto th e 700 // When not equal to DragOperationNone, the drag data can be dropped onto th e
705 // current drop target in this WebView (the drop target can accept the drop) . 701 // current drop target in this WebView (the drop target can accept the drop) .
706 WebDragOperation m_dragOperation; 702 WebDragOperation m_dragOperation;
707 703
708 // The popup associated with an input/select element. 704 // The popup associated with an input/select element.
709 RefPtr<WebPagePopupImpl> m_pagePopup; 705 RefPtr<WebPagePopupImpl> m_pagePopup;
710 706
711 OwnPtrWillBePersistent<InspectorOverlayImpl> m_inspectorOverlay; 707 OwnPtrWillBePersistent<InspectorOverlayImpl> m_inspectorOverlay;
712 OwnPtrWillBePersistent<DevToolsEmulator> m_devToolsEmulator; 708 OwnPtrWillBePersistent<DevToolsEmulator> m_devToolsEmulator;
713 OwnPtr<PageOverlayList> m_pageOverlays; 709 OwnPtr<PageOverlay> m_pageColorOverlay;
714 710
715 // Whether the webview is rendering transparently. 711 // Whether the webview is rendering transparently.
716 bool m_isTransparent; 712 bool m_isTransparent;
717 713
718 // Whether the user can press tab to focus links. 714 // Whether the user can press tab to focus links.
719 bool m_tabsToLinks; 715 bool m_tabsToLinks;
720 716
721 // If set, the (plugin) node which has mouse capture. 717 // If set, the (plugin) node which has mouse capture.
722 RefPtrWillBePersistent<Node> m_mouseCaptureNode; 718 RefPtrWillBePersistent<Node> m_mouseCaptureNode;
723 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 719 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
(...skipping 26 matching lines...) Expand all
750 WebColor m_baseBackgroundColor; 746 WebColor m_baseBackgroundColor;
751 WebColor m_backgroundColorOverride; 747 WebColor m_backgroundColorOverride;
752 float m_zoomFactorOverride; 748 float m_zoomFactorOverride;
753 749
754 bool m_userGestureObserved; 750 bool m_userGestureObserved;
755 WebDisplayMode m_displayMode; 751 WebDisplayMode m_displayMode;
756 752
757 FloatSize m_elasticOverscroll; 753 FloatSize m_elasticOverscroll;
758 754
759 RefPtrWillBePersistent<EventListener> m_popupMouseWheelEventListener; 755 RefPtrWillBePersistent<EventListener> m_popupMouseWheelEventListener;
760 OwnPtr<WebPageOverlay> m_pageColorOverlay;
761 }; 756 };
762 757
763 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 758 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
764 // 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
765 // WebViewImpl because WebViewImpl is the only implementation of WebView. 760 // WebViewImpl because WebViewImpl is the only implementation of WebView.
766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
767 762
768 } // namespace blink 763 } // namespace blink
769 764
770 #endif 765 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698