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

Side by Side Diff: public/platform/WebLayerTreeView.h

Issue 352173002: Expose public interface for composited selection bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments Created 6 years, 5 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
« no previous file with comments | « no previous file | public/platform/WebSelectionBound.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 35
36 class SkBitmap; 36 class SkBitmap;
37 37
38 namespace blink { 38 namespace blink {
39 class WebCompositeAndReadbackAsyncCallback; 39 class WebCompositeAndReadbackAsyncCallback;
40 class WebGraphicsContext3D; 40 class WebGraphicsContext3D;
41 class WebLayer; 41 class WebLayer;
42 struct WebPoint; 42 struct WebPoint;
43 struct WebRect; 43 struct WebRect;
44 struct WebRenderingStats; 44 struct WebRenderingStats;
45 struct WebSelectionBound;
45 46
46 class WebLayerTreeView { 47 class WebLayerTreeView {
47 public: 48 public:
48 virtual ~WebLayerTreeView() { } 49 virtual ~WebLayerTreeView() { }
49 50
50 // Initialization and lifecycle -------------------------------------- 51 // Initialization and lifecycle --------------------------------------
51 52
52 // Indicates that the compositing surface used by this WebLayerTreeView is r eady to use. 53 // Indicates that the compositing surface used by this WebLayerTreeView is r eady to use.
53 // A WebLayerTreeView may request a context from its client before the surfa ce is ready, 54 // A WebLayerTreeView may request a context from its client before the surfa ce is ready,
54 // but it won't attempt to use it. 55 // but it won't attempt to use it.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // been added to the tree. 119 // been added to the tree.
119 virtual void registerForAnimations(WebLayer* layer) { } 120 virtual void registerForAnimations(WebLayer* layer) { }
120 121
121 // Identify key layers to the compositor when using the pinch virtual viewpo rt. 122 // Identify key layers to the compositor when using the pinch virtual viewpo rt.
122 virtual void registerViewportLayers( 123 virtual void registerViewportLayers(
123 const WebLayer* pageScaleLayerLayer, 124 const WebLayer* pageScaleLayerLayer,
124 const WebLayer* innerViewportScrollLayer, 125 const WebLayer* innerViewportScrollLayer,
125 const WebLayer* outerViewportScrollLayer) { } 126 const WebLayer* outerViewportScrollLayer) { }
126 virtual void clearViewportLayers() { } 127 virtual void clearViewportLayers() { }
127 128
129 // Used to update the active selection bounds.
130 // If the (empty) selection is an insertion point, |anchor| and |focus| will be identical with type |Caret|.
131 // If the (non-empty) selection has mixed RTL/LTR text, |anchor| and |focus| may share the same type,
132 // |SelectionLeft| or |SelectionRight|.
133 virtual void registerSelection(const WebSelectionBound& anchor, const WebSel ectionBound& focus) { }
134 virtual void clearSelection() { }
135
128 // Debugging / dangerous --------------------------------------------- 136 // Debugging / dangerous ---------------------------------------------
129 137
130 // Toggles the FPS counter in the HUD layer 138 // Toggles the FPS counter in the HUD layer
131 virtual void setShowFPSCounter(bool) { } 139 virtual void setShowFPSCounter(bool) { }
132 140
133 // Toggles the paint rects in the HUD layer 141 // Toggles the paint rects in the HUD layer
134 virtual void setShowPaintRects(bool) { } 142 virtual void setShowPaintRects(bool) { }
135 143
136 // Toggles the debug borders on layers 144 // Toggles the debug borders on layers
137 virtual void setShowDebugBorders(bool) { } 145 virtual void setShowDebugBorders(bool) { }
138 146
139 // Toggles continuous painting 147 // Toggles continuous painting
140 virtual void setContinuousPaintingEnabled(bool) { } 148 virtual void setContinuousPaintingEnabled(bool) { }
141 149
142 // Toggles scroll bottleneck rects on the HUD layer 150 // Toggles scroll bottleneck rects on the HUD layer
143 virtual void setShowScrollBottleneckRects(bool) { } 151 virtual void setShowScrollBottleneckRects(bool) { }
144 }; 152 };
145 153
146 } // namespace blink 154 } // namespace blink
147 155
148 #endif // WebLayerTreeView_h 156 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebSelectionBound.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698