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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 538 |
539 void configureAutoResizeMode(); | 539 void configureAutoResizeMode(); |
540 | 540 |
541 void setIsAcceleratedCompositingActive(bool); | 541 void setIsAcceleratedCompositingActive(bool); |
542 void doComposite(); | 542 void doComposite(); |
543 void reallocateRenderer(); | 543 void reallocateRenderer(); |
544 void updateLayerTreeViewport(); | 544 void updateLayerTreeViewport(); |
545 void updateLayerTreeBackgroundColor(); | 545 void updateLayerTreeBackgroundColor(); |
546 void updateRootLayerTransform(); | 546 void updateRootLayerTransform(); |
547 void updateLayerTreeDeviceScaleFactor(); | 547 void updateLayerTreeDeviceScaleFactor(); |
| 548 void updateLayerTreeSelection(); |
548 | 549 |
549 // Helper function: Widens the width of |source| by the specified margins | 550 // Helper function: Widens the width of |source| by the specified margins |
550 // while keeping it smaller than page width. | 551 // while keeping it smaller than page width. |
551 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i
nt minimumMargin); | 552 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i
nt minimumMargin); |
552 | 553 |
553 void pointerLockMouseEvent(const WebInputEvent&); | 554 void pointerLockMouseEvent(const WebInputEvent&); |
554 | 555 |
555 // PageWidgetEventHandler functions | 556 // PageWidgetEventHandler functions |
556 virtual void handleMouseLeave(WebCore::LocalFrame&, const WebMouseEvent&) OV
ERRIDE; | 557 virtual void handleMouseLeave(WebCore::LocalFrame&, const WebMouseEvent&) OV
ERRIDE; |
557 virtual void handleMouseDown(WebCore::LocalFrame&, const WebMouseEvent&) OVE
RRIDE; | 558 virtual void handleMouseDown(WebCore::LocalFrame&, const WebMouseEvent&) OVE
RRIDE; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 bool m_userGestureObserved; | 713 bool m_userGestureObserved; |
713 }; | 714 }; |
714 | 715 |
715 // We have no ways to check if the specified WebView is an instance of | 716 // We have no ways to check if the specified WebView is an instance of |
716 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 717 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
717 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 718 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
718 | 719 |
719 } // namespace blink | 720 } // namespace blink |
720 | 721 |
721 #endif | 722 #endif |
OLD | NEW |