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

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

Issue 454643002: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 3 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
« 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class UserGestureToken; 73 class UserGestureToken;
74 class WebActiveGestureAnimation; 74 class WebActiveGestureAnimation;
75 class WebDevToolsAgentPrivate; 75 class WebDevToolsAgentPrivate;
76 class WebLocalFrameImpl; 76 class WebLocalFrameImpl;
77 class WebRemoteFrameImpl; 77 class WebRemoteFrameImpl;
78 class WebImage; 78 class WebImage;
79 class WebPagePopupImpl; 79 class WebPagePopupImpl;
80 class WebPlugin; 80 class WebPlugin;
81 class WebSettingsImpl; 81 class WebSettingsImpl;
82 82
83 struct WebSelectionBound;
84
83 class WebViewImpl FINAL : public WebView 85 class WebViewImpl FINAL : public WebView
84 , public RefCounted<WebViewImpl> 86 , public RefCounted<WebViewImpl>
85 , public WebGestureCurveTarget 87 , public WebGestureCurveTarget
86 , public PagePopupDriver 88 , public PagePopupDriver
87 , public PageWidgetEventHandler { 89 , public PageWidgetEventHandler {
88 public: 90 public:
89 static WebViewImpl* create(WebViewClient*); 91 static WebViewImpl* create(WebViewClient*);
90 92
91 // WebWidget methods: 93 // WebWidget methods:
92 virtual void close() OVERRIDE; 94 virtual void close() OVERRIDE;
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 void enableFakePageScaleAnimationForTesting(bool); 451 void enableFakePageScaleAnimationForTesting(bool);
450 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; } 452 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; }
451 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f akePageScaleAnimationTargetPosition; } 453 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f akePageScaleAnimationTargetPosition; }
452 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; } 454 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; }
453 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; } 455 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; }
454 456
455 void enterFullScreenForElement(Element*); 457 void enterFullScreenForElement(Element*);
456 void exitFullScreenForElement(Element*); 458 void exitFullScreenForElement(Element*);
457 459
458 void clearCompositedSelectionBounds(); 460 void clearCompositedSelectionBounds();
461 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const WebSelectionBound& focus);
459 462
460 // Exposed for the purpose of overriding device metrics. 463 // Exposed for the purpose of overriding device metrics.
461 void sendResizeEventAndRepaint(); 464 void sendResizeEventAndRepaint();
462 465
463 // Exposed for testing purposes. 466 // Exposed for testing purposes.
464 bool hasHorizontalScrollbar(); 467 bool hasHorizontalScrollbar();
465 bool hasVerticalScrollbar(); 468 bool hasVerticalScrollbar();
466 469
467 // Pointer Lock calls allow a page to capture all mouse events and 470 // Pointer Lock calls allow a page to capture all mouse events and
468 // disable the system cursor. 471 // disable the system cursor.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 float m_topControlsContentOffset; 736 float m_topControlsContentOffset;
734 }; 737 };
735 738
736 // We have no ways to check if the specified WebView is an instance of 739 // We have no ways to check if the specified WebView is an instance of
737 // WebViewImpl because WebViewImpl is the only implementation of WebView. 740 // WebViewImpl because WebViewImpl is the only implementation of WebView.
738 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 741 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
739 742
740 } // namespace blink 743 } // namespace blink
741 744
742 #endif 745 #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