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

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

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class UserGestureToken; 76 class UserGestureToken;
77 class WebActiveGestureAnimation; 77 class WebActiveGestureAnimation;
78 class WebDevToolsAgentImpl; 78 class WebDevToolsAgentImpl;
79 class WebLayerTreeView; 79 class WebLayerTreeView;
80 class WebLocalFrameImpl; 80 class WebLocalFrameImpl;
81 class WebImage; 81 class WebImage;
82 class WebPagePopupImpl; 82 class WebPagePopupImpl;
83 class WebPlugin; 83 class WebPlugin;
84 class WebSettingsImpl; 84 class WebSettingsImpl;
85 85
86 struct WebSelectionBound; 86 struct WebSelectionBounds;
87 87
88 class WebViewImpl final : public WebView 88 class WebViewImpl final : public WebView
89 , public RefCounted<WebViewImpl> 89 , public RefCounted<WebViewImpl>
90 , public WebGestureCurveTarget 90 , public WebGestureCurveTarget
91 , public PageWidgetEventHandler { 91 , public PageWidgetEventHandler {
92 public: 92 public:
93 static WebViewImpl* create(WebViewClient*); 93 static WebViewImpl* create(WebViewClient*);
94 94
95 // WebWidget methods: 95 // WebWidget methods:
96 virtual void close() override; 96 virtual void close() override;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 void enableFakePageScaleAnimationForTesting(bool); 469 void enableFakePageScaleAnimationForTesting(bool);
470 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; } 470 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; }
471 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f akePageScaleAnimationTargetPosition; } 471 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f akePageScaleAnimationTargetPosition; }
472 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; } 472 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; }
473 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; } 473 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; }
474 474
475 void enterFullScreenForElement(Element*); 475 void enterFullScreenForElement(Element*);
476 void exitFullScreenForElement(Element*); 476 void exitFullScreenForElement(Element*);
477 477
478 void clearCompositedSelectionBounds(); 478 void clearCompositedSelectionBounds();
479 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const WebSelectionBound& focus); 479 void updateCompositedSelectionBounds(const WebSelectionBounds&);
480 480
481 // Exposed for the purpose of overriding device metrics. 481 // Exposed for the purpose of overriding device metrics.
482 void sendResizeEventAndRepaint(); 482 void sendResizeEventAndRepaint();
483 483
484 // Exposed for testing purposes. 484 // Exposed for testing purposes.
485 bool hasHorizontalScrollbar(); 485 bool hasHorizontalScrollbar();
486 bool hasVerticalScrollbar(); 486 bool hasVerticalScrollbar();
487 487
488 // Pointer Lock calls allow a page to capture all mouse events and 488 // Pointer Lock calls allow a page to capture all mouse events and
489 // disable the system cursor. 489 // disable the system cursor.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 }; 773 };
774 774
775 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 775 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
776 // We have no ways to check if the specified WebView is an instance of 776 // We have no ways to check if the specified WebView is an instance of
777 // WebViewImpl because WebViewImpl is the only implementation of WebView. 777 // WebViewImpl because WebViewImpl is the only implementation of WebView.
778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
779 779
780 } // namespace blink 780 } // namespace blink
781 781
782 #endif 782 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698