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

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: Fixed broken popup bug 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
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* rootFrame) { }
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&, unsigned modifier Flags) = 0; 152 virtual void mouseDidMoveOverElement(const HitTestResult&, unsigned modifier Flags) = 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 // LocalFrame sets the graphics layer to that frame's WebWidget, and should be 0
dcheng 2014/11/24 22:30:39 s/to that/for that/
kenrb 2014/11/25 17:14:56 Done.
184 // for setting the graphics layer to a WebView or WebPopupView.
dcheng 2014/11/24 22:30:39 We don't seem to actually pass null for the LocalF
kenrb 2014/11/25 17:14:56 Changed.
185 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame*) = 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 234 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
231 virtual void showImeIfNeeded() { } 235 virtual void showImeIfNeeded() { }
232 236
233 protected: 237 protected:
234 virtual ~ChromeClient() { } 238 virtual ~ChromeClient() { }
235 }; 239 };
236 240
237 } // namespace blink 241 } // namespace blink
238 242
239 #endif // ChromeClient_h 243 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698