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

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

Issue 302993003: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/web/WebRuntimeFeatures.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 class PopupContainer; 72 class PopupContainer;
73 class WebActiveGestureAnimation; 73 class WebActiveGestureAnimation;
74 class WebDevToolsAgentPrivate; 74 class WebDevToolsAgentPrivate;
75 class WebLocalFrameImpl; 75 class WebLocalFrameImpl;
76 class WebImage; 76 class WebImage;
77 class WebPagePopupImpl; 77 class WebPagePopupImpl;
78 class WebPlugin; 78 class WebPlugin;
79 class WebSettingsImpl; 79 class WebSettingsImpl;
80 class FullscreenController; 80 class FullscreenController;
81 81
82 struct WebSelectionBound;
83
82 class WebViewImpl FINAL : public WebView 84 class WebViewImpl FINAL : public WebView
83 , public RefCounted<WebViewImpl> 85 , public RefCounted<WebViewImpl>
84 , public WebGestureCurveTarget 86 , public WebGestureCurveTarget
85 , public blink::PagePopupDriver 87 , public blink::PagePopupDriver
86 , public PageWidgetEventHandler { 88 , public PageWidgetEventHandler {
87 public: 89 public:
88 static WebViewImpl* create(WebViewClient*); 90 static WebViewImpl* create(WebViewClient*);
89 91
90 // WebWidget methods: 92 // WebWidget methods:
91 virtual void close() OVERRIDE; 93 virtual void close() OVERRIDE;
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 void enableFakePageScaleAnimationForTesting(bool); 447 void enableFakePageScaleAnimationForTesting(bool);
446 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; } 448 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; }
447 blink::IntPoint fakePageScaleAnimationTargetPositionForTesting() const { ret urn m_fakePageScaleAnimationTargetPosition; } 449 blink::IntPoint fakePageScaleAnimationTargetPositionForTesting() const { ret urn m_fakePageScaleAnimationTargetPosition; }
448 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; } 450 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; }
449 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; } 451 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; }
450 452
451 void enterFullScreenForElement(blink::Element*); 453 void enterFullScreenForElement(blink::Element*);
452 void exitFullScreenForElement(blink::Element*); 454 void exitFullScreenForElement(blink::Element*);
453 455
454 void clearCompositedSelectionBounds(); 456 void clearCompositedSelectionBounds();
457 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const WebSelectionBound& focus);
455 458
456 // Exposed for the purpose of overriding device metrics. 459 // Exposed for the purpose of overriding device metrics.
457 void sendResizeEventAndRepaint(); 460 void sendResizeEventAndRepaint();
458 461
459 // Exposed for testing purposes. 462 // Exposed for testing purposes.
460 bool hasHorizontalScrollbar(); 463 bool hasHorizontalScrollbar();
461 bool hasVerticalScrollbar(); 464 bool hasVerticalScrollbar();
462 465
463 // Pointer Lock calls allow a page to capture all mouse events and 466 // Pointer Lock calls allow a page to capture all mouse events and
464 // disable the system cursor. 467 // disable the system cursor.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 bool m_userGestureObserved; 728 bool m_userGestureObserved;
726 }; 729 };
727 730
728 // We have no ways to check if the specified WebView is an instance of 731 // We have no ways to check if the specified WebView is an instance of
729 // WebViewImpl because WebViewImpl is the only implementation of WebView. 732 // WebViewImpl because WebViewImpl is the only implementation of WebView.
730 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 733 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
731 734
732 } // namespace blink 735 } // namespace blink
733 736
734 #endif 737 #endif
OLDNEW
« no previous file with comments | « Source/web/WebRuntimeFeatures.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698