Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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&, 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 Loading... | |
| 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* localFrameR oot) = 0; | |
|
dcheng
2014/11/26 18:20:00
localRoot
kenrb
2014/12/02 17:49:43
Done.
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |