Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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" |
| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 void disableDeviceEmulation() override; | 250 void disableDeviceEmulation() override; |
| 251 WebAXObject accessibilityObject() override; | 251 WebAXObject accessibilityObject() override; |
| 252 void setSelectionColors(unsigned activeBackgroundColor, | 252 void setSelectionColors(unsigned activeBackgroundColor, |
| 253 unsigned activeForegroundColor, | 253 unsigned activeForegroundColor, |
| 254 unsigned inactiveBackgroundColor, | 254 unsigned inactiveBackgroundColor, |
| 255 unsigned inactiveForegroundColor) override; | 255 unsigned inactiveForegroundColor) override; |
| 256 void performCustomContextMenuAction(unsigned action) override; | 256 void performCustomContextMenuAction(unsigned action) override; |
| 257 void showContextMenu() override; | 257 void showContextMenu() override; |
| 258 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid e; | 258 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid e; |
| 259 void hidePopups() override; | 259 void hidePopups() override; |
| 260 void addPageOverlay(WebPageOverlay*, int /* zOrder */) override; | 260 void addPageOverlay(WebPageOverlay*); |
| 261 void setPageOverlayColor(WebColor) override; | 261 void setPageOverlayColor(WebColor) override; |
| 262 void removePageOverlay(WebPageOverlay*) override; | 262 void removePageOverlay(WebPageOverlay*); |
| 263 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) override; | 263 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) override; |
| 264 bool endActiveFlingAnimation() override; | 264 bool endActiveFlingAnimation() override; |
| 265 void setShowPaintRects(bool) override; | 265 void setShowPaintRects(bool) override; |
| 266 void setShowDebugBorders(bool); | 266 void setShowDebugBorders(bool); |
| 267 void setShowFPSCounter(bool) override; | 267 void setShowFPSCounter(bool) override; |
| 268 void setContinuousPaintingEnabled(bool) override; | 268 void setContinuousPaintingEnabled(bool) override; |
| 269 void setShowScrollBottleneckRects(bool) override; | 269 void setShowScrollBottleneckRects(bool) override; |
| 270 void acceptLanguagesChanged() override; | 270 void acceptLanguagesChanged() override; |
| 271 | 271 |
| 272 // WebViewImpl | 272 // WebViewImpl |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 287 void setBackgroundColorOverride(WebColor); | 287 void setBackgroundColorOverride(WebColor); |
| 288 void setZoomFactorOverride(float); | 288 void setZoomFactorOverride(float); |
| 289 void updateShowFPSCounterAndContinuousPainting(); | 289 void updateShowFPSCounterAndContinuousPainting(); |
| 290 void setCompositorDeviceScaleFactorOverride(float); | 290 void setCompositorDeviceScaleFactorOverride(float); |
| 291 void setRootLayerTransform(const WebSize& offset, float scale); | 291 void setRootLayerTransform(const WebSize& offset, float scale); |
| 292 | 292 |
| 293 Color baseBackgroundColor() const { return m_baseBackgroundColor; } | 293 Color baseBackgroundColor() const { return m_baseBackgroundColor; } |
| 294 | 294 |
| 295 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } | 295 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } |
| 296 | 296 |
| 297 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); } | 297 PageOverlay* pageOverlay() const { return m_pageOverlay.get(); } |
|
dgozman
2015/07/28 16:16:57
I think this should be |pageOverlayForTesting|.
sergeyv
2015/07/29 18:12:36
Now it's deleted
| |
| 298 | 298 |
| 299 void setOverlayLayer(GraphicsLayer*); | 299 void setOverlayLayer(GraphicsLayer*); |
| 300 | 300 |
| 301 const WebPoint& lastMouseDownPoint() const | 301 const WebPoint& lastMouseDownPoint() const |
| 302 { | 302 { |
| 303 return m_lastMouseDownPoint; | 303 return m_lastMouseDownPoint; |
| 304 } | 304 } |
| 305 | 305 |
| 306 Frame* focusedCoreFrame() const; | 306 Frame* focusedCoreFrame() const; |
| 307 | 307 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 702 // The current drag operation as negotiated by the source and destination. | 702 // The current drag operation as negotiated by the source and destination. |
| 703 // 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 |
| 704 // 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) . |
| 705 WebDragOperation m_dragOperation; | 705 WebDragOperation m_dragOperation; |
| 706 | 706 |
| 707 // The popup associated with an input/select element. | 707 // The popup associated with an input/select element. |
| 708 RefPtr<WebPagePopupImpl> m_pagePopup; | 708 RefPtr<WebPagePopupImpl> m_pagePopup; |
| 709 | 709 |
| 710 OwnPtrWillBePersistent<InspectorOverlayImpl> m_inspectorOverlay; | 710 OwnPtrWillBePersistent<InspectorOverlayImpl> m_inspectorOverlay; |
| 711 OwnPtr<DevToolsEmulator> m_devToolsEmulator; | 711 OwnPtr<DevToolsEmulator> m_devToolsEmulator; |
| 712 OwnPtr<PageOverlayList> m_pageOverlays; | 712 OwnPtr<PageOverlay> m_pageOverlay; |
| 713 | 713 |
| 714 // Whether the webview is rendering transparently. | 714 // Whether the webview is rendering transparently. |
| 715 bool m_isTransparent; | 715 bool m_isTransparent; |
| 716 | 716 |
| 717 // Whether the user can press tab to focus links. | 717 // Whether the user can press tab to focus links. |
| 718 bool m_tabsToLinks; | 718 bool m_tabsToLinks; |
| 719 | 719 |
| 720 // If set, the (plugin) node which has mouse capture. | 720 // If set, the (plugin) node which has mouse capture. |
| 721 RefPtrWillBePersistent<Node> m_mouseCaptureNode; | 721 RefPtrWillBePersistent<Node> m_mouseCaptureNode; |
| 722 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; | 722 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 760 }; | 760 }; |
| 761 | 761 |
| 762 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); | 762 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); |
| 763 // We have no ways to check if the specified WebView is an instance of | 763 // We have no ways to check if the specified WebView is an instance of |
| 764 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 764 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 765 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 765 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 766 | 766 |
| 767 } // namespace blink | 767 } // namespace blink |
| 768 | 768 |
| 769 #endif | 769 #endif |
| OLD | NEW |