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

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

Issue 1358173008: Add UMA stats for pinch-zoom behavior on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small build fix to previous patch Created 5 years, 2 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // Exposed for testing purposes. 483 // Exposed for testing purposes.
484 bool hasHorizontalScrollbar(); 484 bool hasHorizontalScrollbar();
485 bool hasVerticalScrollbar(); 485 bool hasVerticalScrollbar();
486 486
487 // Pointer Lock calls allow a page to capture all mouse events and 487 // Pointer Lock calls allow a page to capture all mouse events and
488 // disable the system cursor. 488 // disable the system cursor.
489 bool requestPointerLock(); 489 bool requestPointerLock();
490 void requestPointerUnlock(); 490 void requestPointerUnlock();
491 bool isPointerLocked(); 491 bool isPointerLocked();
492 492
493 // Heuristic-based function for determining if we should disable workarounds
494 // for viewing websites that are not optimized for mobile devices.
495 bool shouldDisableDesktopWorkarounds();
496
497 // Exposed for tests. 493 // Exposed for tests.
498 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 494 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
499 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get(); } 495 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get(); }
500 496
501 WebSettingsImpl* settingsImpl(); 497 WebSettingsImpl* settingsImpl();
502 498
503 // Returns the bounding box of the block type node touched by the WebPoint. 499 // Returns the bounding box of the block type node touched by the WebPoint.
504 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); 500 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping);
505 501
506 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 502 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 }; 756 };
761 757
762 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 758 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
763 // We have no ways to check if the specified WebView is an instance of 759 // We have no ways to check if the specified WebView is an instance of
764 // WebViewImpl because WebViewImpl is the only implementation of WebView. 760 // WebViewImpl because WebViewImpl is the only implementation of WebView.
765 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
766 762
767 } // namespace blink 763 } // namespace blink
768 764
769 #endif 765 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698