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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 void clearCompositedSelection(); | 471 void clearCompositedSelection(); |
472 void updateCompositedSelection(const WebSelection&); | 472 void updateCompositedSelection(const WebSelection&); |
473 | 473 |
474 // Exposed for the purpose of overriding device metrics. | 474 // Exposed for the purpose of overriding device metrics. |
475 void sendResizeEventAndRepaint(); | 475 void sendResizeEventAndRepaint(); |
476 | 476 |
477 // Exposed for testing purposes. | 477 // Exposed for testing purposes. |
478 bool hasHorizontalScrollbar(); | 478 bool hasHorizontalScrollbar(); |
479 bool hasVerticalScrollbar(); | 479 bool hasVerticalScrollbar(); |
480 | 480 |
481 // Pointer Lock calls allow a page to capture all mouse events and | |
482 // disable the system cursor. | |
483 bool requestPointerLock(); | |
484 void requestPointerUnlock(); | |
485 bool isPointerLocked(); | |
486 | |
487 // Exposed for tests. | 481 // Exposed for tests. |
488 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 482 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
489 LinkHighlightImpl* getLinkHighlight(int i) { return m_linkHighlights[i].get(
); } | 483 LinkHighlightImpl* getLinkHighlight(int i) { return m_linkHighlights[i].get(
); } |
490 | 484 |
491 WebSettingsImpl* settingsImpl(); | 485 WebSettingsImpl* settingsImpl(); |
492 | 486 |
493 // Returns the bounding box of the block type node touched by the WebPoint. | 487 // Returns the bounding box of the block type node touched by the WebPoint. |
494 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); | 488 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); |
495 | 489 |
496 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 490 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 double m_lastFrameTimeMonotonic; | 761 double m_lastFrameTimeMonotonic; |
768 }; | 762 }; |
769 | 763 |
770 // We have no ways to check if the specified WebView is an instance of | 764 // We have no ways to check if the specified WebView is an instance of |
771 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
772 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
773 | 767 |
774 } // namespace blink | 768 } // namespace blink |
775 | 769 |
776 #endif | 770 #endif |
OLD | NEW |