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

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: Public API only 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') | public/platform/WebSelectionBound.h » ('J')
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 virtual void registerSelection(const WebSelectionBound& anchor, const WebSel ectionBound& focus) { }
abarth-chromium 2014/06/25 22:27:03 Are there any invariants of these arguments that w
jdduke (slow) 2014/06/25 22:58:10 Yes, good call, I'll flesh out the comment a bit m
131 virtual void clearSelection() { }
132
128 // Debugging / dangerous --------------------------------------------- 133 // Debugging / dangerous ---------------------------------------------
129 134
130 // Toggles the FPS counter in the HUD layer 135 // Toggles the FPS counter in the HUD layer
131 virtual void setShowFPSCounter(bool) { } 136 virtual void setShowFPSCounter(bool) { }
132 137
133 // Toggles the paint rects in the HUD layer 138 // Toggles the paint rects in the HUD layer
134 virtual void setShowPaintRects(bool) { } 139 virtual void setShowPaintRects(bool) { }
135 140
136 // Toggles the debug borders on layers 141 // Toggles the debug borders on layers
137 virtual void setShowDebugBorders(bool) { } 142 virtual void setShowDebugBorders(bool) { }
138 143
139 // Toggles continuous painting 144 // Toggles continuous painting
140 virtual void setContinuousPaintingEnabled(bool) { } 145 virtual void setContinuousPaintingEnabled(bool) { }
141 146
142 // Toggles scroll bottleneck rects on the HUD layer 147 // Toggles scroll bottleneck rects on the HUD layer
143 virtual void setShowScrollBottleneckRects(bool) { } 148 virtual void setShowScrollBottleneckRects(bool) { }
144 }; 149 };
145 150
146 } // namespace blink 151 } // namespace blink
147 152
148 #endif // WebLayerTreeView_h 153 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebSelectionBound.h » ('j') | public/platform/WebSelectionBound.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698