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

Side by Side Diff: Source/core/page/ChromeClient.h

Issue 1301033002: Plumb CompositedDisplayList to WebViewImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase from space, also minor cleanups Created 5 years, 4 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class GraphicsLayerFactory; 55 class GraphicsLayerFactory;
56 class HitTestResult; 56 class HitTestResult;
57 class HTMLFormControlElement; 57 class HTMLFormControlElement;
58 class HTMLInputElement; 58 class HTMLInputElement;
59 class HTMLSelectElement; 59 class HTMLSelectElement;
60 class IntRect; 60 class IntRect;
61 class LocalFrame; 61 class LocalFrame;
62 class Node; 62 class Node;
63 class Page; 63 class Page;
64 class PopupOpeningObserver; 64 class PopupOpeningObserver;
65 class WebCompositedDisplayList;
65 class WebCompositorAnimationTimeline; 66 class WebCompositorAnimationTimeline;
66 67
67 struct CompositedSelection; 68 struct CompositedSelection;
68 struct DateTimeChooserParameters; 69 struct DateTimeChooserParameters;
69 struct FrameLoadRequest; 70 struct FrameLoadRequest;
70 struct GraphicsDeviceAdapter; 71 struct GraphicsDeviceAdapter;
71 struct ViewportDescription; 72 struct ViewportDescription;
72 struct WindowFeatures; 73 struct WindowFeatures;
73 74
74 class CORE_EXPORT ChromeClient : public HostWindow { 75 class CORE_EXPORT ChromeClient : public HostWindow {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual void enumerateChosenDirectory(FileChooser*) = 0; 177 virtual void enumerateChosenDirectory(FileChooser*) = 0;
177 178
178 // Allows ports to customize the type of graphics layers created by this pag e. 179 // Allows ports to customize the type of graphics layers created by this pag e.
179 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr; } 180 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr; }
180 181
181 // Pass 0 as the GraphicsLayer to detach the root layer. 182 // Pass 0 as the GraphicsLayer to detach the root layer.
182 // This sets the graphics layer for the LocalFrame's WebWidget, if it has 183 // This sets the graphics layer for the LocalFrame's WebWidget, if it has
183 // one. Otherwise it sets it for the WebViewImpl. 184 // one. Otherwise it sets it for the WebViewImpl.
184 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) = 0; 185 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) = 0;
185 186
187 virtual void setCompositedDisplayList(PassOwnPtr<WebCompositedDisplayList>) { }
188 virtual WebCompositedDisplayList* compositedDisplayListForTesting() { return nullptr; }
189
186 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin e*, LocalFrame* localRoot) { } 190 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin e*, LocalFrame* localRoot) { }
187 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin e*, LocalFrame* localRoot) { } 191 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin e*, LocalFrame* localRoot) { }
188 192
189 virtual void enterFullScreenForElement(Element*) { } 193 virtual void enterFullScreenForElement(Element*) { }
190 virtual void exitFullScreenForElement(Element*) { } 194 virtual void exitFullScreenForElement(Element*) { }
191 195
192 virtual void clearCompositedSelection() { } 196 virtual void clearCompositedSelection() { }
193 virtual void updateCompositedSelection(const CompositedSelection&) { } 197 virtual void updateCompositedSelection(const CompositedSelection&) { }
194 198
195 virtual void needTouchEvents(bool) = 0; 199 virtual void needTouchEvents(bool) = 0;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 virtual void printDelegate(LocalFrame*) = 0; 263 virtual void printDelegate(LocalFrame*) = 0;
260 264
261 private: 265 private:
262 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 266 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
263 void setToolTip(const HitTestResult&); 267 void setToolTip(const HitTestResult&);
264 }; 268 };
265 269
266 } // namespace blink 270 } // namespace blink
267 271
268 #endif // ChromeClient_h 272 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698