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

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: Rebase 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 // Exposed for testing purposes. 484 // Exposed for testing purposes.
485 bool hasHorizontalScrollbar(); 485 bool hasHorizontalScrollbar();
486 bool hasVerticalScrollbar(); 486 bool hasVerticalScrollbar();
487 487
488 // Pointer Lock calls allow a page to capture all mouse events and 488 // Pointer Lock calls allow a page to capture all mouse events and
489 // disable the system cursor. 489 // disable the system cursor.
490 bool requestPointerLock(); 490 bool requestPointerLock();
491 void requestPointerUnlock(); 491 void requestPointerUnlock();
492 bool isPointerLocked(); 492 bool isPointerLocked();
493 493
494 // Heuristic-based function for determining if we should disable workarounds
495 // for viewing websites that are not optimized for mobile devices.
496 bool shouldDisableDesktopWorkarounds();
497
498 // Exposed for tests. 494 // Exposed for tests.
499 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 495 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
500 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get(); } 496 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get(); }
501 497
502 WebSettingsImpl* settingsImpl(); 498 WebSettingsImpl* settingsImpl();
503 499
504 // Returns the bounding box of the block type node touched by the WebPoint. 500 // Returns the bounding box of the block type node touched by the WebPoint.
505 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); 501 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping);
506 502
507 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 503 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
(...skipping 252 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
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698