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

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

Issue 749333002: Plumbing for frame-specific WebWidgets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/page/PageAnimator.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) 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // Methods used by HostWindow. 135 // Methods used by HostWindow.
136 virtual void invalidateContentsAndRootView(const IntRect&) = 0; 136 virtual void invalidateContentsAndRootView(const IntRect&) = 0;
137 virtual void invalidateContentsForSlowScroll(const IntRect&) = 0; 137 virtual void invalidateContentsForSlowScroll(const IntRect&) = 0;
138 virtual IntRect rootViewToScreen(const IntRect&) const = 0; 138 virtual IntRect rootViewToScreen(const IntRect&) const = 0;
139 virtual blink::WebScreenInfo screenInfo() const = 0; 139 virtual blink::WebScreenInfo screenInfo() const = 0;
140 virtual void setCursor(const Cursor&) = 0; 140 virtual void setCursor(const Cursor&) = 0;
141 virtual void scheduleAnimation() = 0; 141 virtual void scheduleAnimation() = 0;
142 // End methods used by HostWindow. 142 // End methods used by HostWindow.
143 143
144 virtual void scheduleAnimationForFrame(LocalFrame*) { }
145
144 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { } 146 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { }
145 147
146 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; 148 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0;
147 virtual void deviceOrPageScaleFactorChanged() const { } 149 virtual void deviceOrPageScaleFactorChanged() const { }
148 virtual void layoutUpdated(LocalFrame*) const { } 150 virtual void layoutUpdated(LocalFrame*) const { }
149 151
150 virtual void mouseDidMoveOverElement(const HitTestResult&) = 0; 152 virtual void mouseDidMoveOverElement(const HitTestResult&) = 0;
151 153
152 virtual void setToolTip(const String&, TextDirection) = 0; 154 virtual void setToolTip(const String&, TextDirection) = 0;
153 155
(...skipping 16 matching lines...) Expand all
170 virtual void openTextDataListChooser(HTMLInputElement&) = 0; 172 virtual void openTextDataListChooser(HTMLInputElement&) = 0;
171 173
172 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) = 0; 174 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) = 0;
173 175
174 // Asychronous request to enumerate all files in a directory chosen by the u ser. 176 // Asychronous request to enumerate all files in a directory chosen by the u ser.
175 virtual void enumerateChosenDirectory(FileChooser*) = 0; 177 virtual void enumerateChosenDirectory(FileChooser*) = 0;
176 178
177 // 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.
178 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr; } 180 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr; }
179 181
180 // Pass 0 as the GraphicsLayer to detatch the root layer. 182 // Pass 0 as the GraphicsLayer to detach the root layer.
181 virtual void attachRootGraphicsLayer(GraphicsLayer*) = 0; 183 // This sets the graphics layer for the LocalFrame's WebWidget, if it has on e. Otherwise
184 // it sets it for the WebViewImpl.
185 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) = 0;
182 186
183 virtual void enterFullScreenForElement(Element*) { } 187 virtual void enterFullScreenForElement(Element*) { }
184 virtual void exitFullScreenForElement(Element*) { } 188 virtual void exitFullScreenForElement(Element*) { }
185 189
186 virtual void clearCompositedSelectionBounds() { } 190 virtual void clearCompositedSelectionBounds() { }
187 virtual void updateCompositedSelectionBounds(const CompositedSelectionBound& anchor, const CompositedSelectionBound& focus) { } 191 virtual void updateCompositedSelectionBounds(const CompositedSelectionBound& anchor, const CompositedSelectionBound& focus) { }
188 192
189 virtual void needTouchEvents(bool) = 0; 193 virtual void needTouchEvents(bool) = 0;
190 194
191 virtual void setTouchAction(TouchAction) = 0; 195 virtual void setTouchAction(TouchAction) = 0;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 230 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
227 virtual void showImeIfNeeded() { } 231 virtual void showImeIfNeeded() { }
228 232
229 protected: 233 protected:
230 virtual ~ChromeClient() { } 234 virtual ~ChromeClient() { }
231 }; 235 };
232 236
233 } // namespace blink 237 } // namespace blink
234 238
235 #endif // ChromeClient_h 239 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « Source/core/page/Chrome.cpp ('k') | Source/core/page/PageAnimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698