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

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

Issue 1325563002: Avoid style clobbering in setCompositionFromExistingText. (2nd land) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use DocumentMarker for underlines Created 5 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
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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 503
504 // Exposed for tests. 504 // Exposed for tests.
505 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 505 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
506 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get(); } 506 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get(); }
507 507
508 WebSettingsImpl* settingsImpl(); 508 WebSettingsImpl* settingsImpl();
509 509
510 // Returns the bounding box of the block type node touched by the WebPoint. 510 // Returns the bounding box of the block type node touched by the WebPoint.
511 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); 511 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping);
512 512
513 // Exposed for tests.
514 WebVector<WebCompositionUnderline> compositionUnderlines() const;
515
516 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 513 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
517 514
518 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; } 515 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; }
519 516
520 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov erride; 517 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov erride;
521 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override; 518 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override;
522 519
523 TopControls& topControls(); 520 TopControls& topControls();
524 // Called anytime top controls layout height or content offset have changed. 521 // Called anytime top controls layout height or content offset have changed.
525 void didUpdateTopControls(); 522 void didUpdateTopControls();
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 }; 769 };
773 770
774 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
775 // We have no ways to check if the specified WebView is an instance of 772 // We have no ways to check if the specified WebView is an instance of
776 // WebViewImpl because WebViewImpl is the only implementation of WebView. 773 // WebViewImpl because WebViewImpl is the only implementation of WebView.
777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
778 775
779 } // namespace blink 776 } // namespace blink
780 777
781 #endif 778 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698