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

Side by Side Diff: sky/engine/web/WebViewImpl.h

Issue 687003002: Remove PageOverlays. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.cpp ('k') | sky/engine/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 28 matching lines...) Expand all
39 #include "public/platform/WebLayer.h" 39 #include "public/platform/WebLayer.h"
40 #include "public/platform/WebPoint.h" 40 #include "public/platform/WebPoint.h"
41 #include "public/platform/WebRect.h" 41 #include "public/platform/WebRect.h"
42 #include "public/platform/WebSize.h" 42 #include "public/platform/WebSize.h"
43 #include "public/platform/WebString.h" 43 #include "public/platform/WebString.h"
44 #include "public/web/WebInputEvent.h" 44 #include "public/web/WebInputEvent.h"
45 #include "public/web/WebNavigationPolicy.h" 45 #include "public/web/WebNavigationPolicy.h"
46 #include "public/web/WebView.h" 46 #include "public/web/WebView.h"
47 #include "web/ChromeClientImpl.h" 47 #include "web/ChromeClientImpl.h"
48 #include "web/EditorClientImpl.h" 48 #include "web/EditorClientImpl.h"
49 #include "web/PageOverlayList.h"
50 #include "web/PageWidgetDelegate.h" 49 #include "web/PageWidgetDelegate.h"
51 #include "web/SpellCheckerClientImpl.h" 50 #include "web/SpellCheckerClientImpl.h"
52 #include "wtf/OwnPtr.h" 51 #include "wtf/OwnPtr.h"
53 #include "wtf/RefCounted.h" 52 #include "wtf/RefCounted.h"
54 #include "wtf/Vector.h" 53 #include "wtf/Vector.h"
55 54
56 namespace blink { 55 namespace blink {
57 56
58 class Frame; 57 class Frame;
59 class LinkHighlight; 58 class LinkHighlight;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 virtual void dragSourceSystemDragEnded() override; 165 virtual void dragSourceSystemDragEnded() override;
167 virtual void spellingMarkers(WebVector<uint32_t>* markers) override; 166 virtual void spellingMarkers(WebVector<uint32_t>* markers) override;
168 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) override; 167 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) override;
169 virtual void setCompositorDeviceScaleFactorOverride(float) override; 168 virtual void setCompositorDeviceScaleFactorOverride(float) override;
170 virtual void setRootLayerTransform(const WebSize& offset, float scale) overr ide; 169 virtual void setRootLayerTransform(const WebSize& offset, float scale) overr ide;
171 virtual void setSelectionColors(unsigned activeBackgroundColor, 170 virtual void setSelectionColors(unsigned activeBackgroundColor,
172 unsigned activeForegroundColor, 171 unsigned activeForegroundColor,
173 unsigned inactiveBackgroundColor, 172 unsigned inactiveBackgroundColor,
174 unsigned inactiveForegroundColor) override; 173 unsigned inactiveForegroundColor) override;
175 virtual void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) override; 174 virtual void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) override;
176 virtual void addPageOverlay(WebPageOverlay*, int /* zOrder */) override;
177 virtual void removePageOverlay(WebPageOverlay*) override;
178 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) override; 175 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) override;
179 virtual bool endActiveFlingAnimation() override; 176 virtual bool endActiveFlingAnimation() override;
180 virtual void setShowPaintRects(bool) override; 177 virtual void setShowPaintRects(bool) override;
181 void setShowDebugBorders(bool); 178 void setShowDebugBorders(bool);
182 virtual void setShowFPSCounter(bool) override; 179 virtual void setShowFPSCounter(bool) override;
183 virtual void setContinuousPaintingEnabled(bool) override; 180 virtual void setContinuousPaintingEnabled(bool) override;
184 virtual void setShowScrollBottleneckRects(bool) override; 181 virtual void setShowScrollBottleneckRects(bool) override;
185 virtual void getSelectionRootBounds(WebRect& bounds) const override; 182 virtual void getSelectionRootBounds(WebRect& bounds) const override;
186 virtual void acceptLanguagesChanged() override; 183 virtual void acceptLanguagesChanged() override;
187 184
188 // WebViewImpl 185 // WebViewImpl
189 186
190 HitTestResult coreHitTestResultAt(const WebPoint&); 187 HitTestResult coreHitTestResultAt(const WebPoint&);
191 void suppressInvalidations(bool enable); 188 void suppressInvalidations(bool enable);
192 void invalidateRect(const IntRect&); 189 void invalidateRect(const IntRect&);
193 190
194 void setIgnoreInputEvents(bool newValue); 191 void setIgnoreInputEvents(bool newValue);
195 void setBackgroundColorOverride(WebColor); 192 void setBackgroundColorOverride(WebColor);
196 void setZoomFactorOverride(float); 193 void setZoomFactorOverride(float);
197 194
198 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 195 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
199 196
200 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); }
201
202 void setOverlayLayer(GraphicsLayer*); 197 void setOverlayLayer(GraphicsLayer*);
203 198
204 const WebPoint& lastMouseDownPoint() const 199 const WebPoint& lastMouseDownPoint() const
205 { 200 {
206 return m_lastMouseDownPoint; 201 return m_lastMouseDownPoint;
207 } 202 }
208 203
209 LocalFrame* focusedCoreFrame() const; 204 LocalFrame* focusedCoreFrame() const;
210 205
211 // Returns the currently focused Element or null if no element has focus. 206 // Returns the currently focused Element or null if no element has focus.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 bool m_imeAcceptEvents; 433 bool m_imeAcceptEvents;
439 434
440 // The available drag operations (copy, move link...) allowed by the source. 435 // The available drag operations (copy, move link...) allowed by the source.
441 WebDragOperation m_operationsAllowed; 436 WebDragOperation m_operationsAllowed;
442 437
443 // The current drag operation as negotiated by the source and destination. 438 // The current drag operation as negotiated by the source and destination.
444 // When not equal to DragOperationNone, the drag data can be dropped onto th e 439 // When not equal to DragOperationNone, the drag data can be dropped onto th e
445 // current drop target in this WebView (the drop target can accept the drop) . 440 // current drop target in this WebView (the drop target can accept the drop) .
446 WebDragOperation m_dragOperation; 441 WebDragOperation m_dragOperation;
447 442
448 OwnPtr<PageOverlayList> m_pageOverlays;
449
450 // Whether the webview is rendering transparently. 443 // Whether the webview is rendering transparently.
451 bool m_isTransparent; 444 bool m_isTransparent;
452 445
453 // Whether the user can press tab to focus links. 446 // Whether the user can press tab to focus links.
454 bool m_tabsToLinks; 447 bool m_tabsToLinks;
455 448
456 // If set, the (plugin) node which has mouse capture. 449 // If set, the (plugin) node which has mouse capture.
457 RefPtr<Node> m_mouseCaptureNode; 450 RefPtr<Node> m_mouseCaptureNode;
458 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 451 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
459 452
(...skipping 30 matching lines...) Expand all
490 bool m_userGestureObserved; 483 bool m_userGestureObserved;
491 }; 484 };
492 485
493 // We have no ways to check if the specified WebView is an instance of 486 // We have no ways to check if the specified WebView is an instance of
494 // WebViewImpl because WebViewImpl is the only implementation of WebView. 487 // WebViewImpl because WebViewImpl is the only implementation of WebView.
495 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 488 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
496 489
497 } // namespace blink 490 } // namespace blink
498 491
499 #endif 492 #endif
OLDNEW
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.cpp ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698