| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef ChromeClient_h | 22 #ifndef ChromeClient_h |
| 23 #define ChromeClient_h | 23 #define ChromeClient_h |
| 24 | 24 |
| 25 #include "core/CoreExport.h" | 25 #include "core/CoreExport.h" |
| 26 #include "core/dom/AXObjectCache.h" | 26 #include "core/dom/AXObjectCache.h" |
| 27 #include "core/frame/ConsoleTypes.h" |
| 28 #include "core/html/forms/PopupMenuClient.h" |
| 27 #include "core/inspector/ConsoleAPITypes.h" | 29 #include "core/inspector/ConsoleAPITypes.h" |
| 28 #include "core/loader/FrameLoader.h" | 30 #include "core/loader/FrameLoader.h" |
| 29 #include "core/loader/NavigationPolicy.h" | 31 #include "core/loader/NavigationPolicy.h" |
| 30 #include "core/frame/ConsoleTypes.h" | |
| 31 #include "core/html/forms/PopupMenuClient.h" | |
| 32 #include "core/style/ComputedStyleConstants.h" | 32 #include "core/style/ComputedStyleConstants.h" |
| 33 #include "platform/Cursor.h" | 33 #include "platform/Cursor.h" |
| 34 #include "platform/HostWindow.h" | 34 #include "platform/HostWindow.h" |
| 35 #include "platform/PopupMenu.h" | 35 #include "platform/PopupMenu.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "platform/scroll/ScrollTypes.h" | 37 #include "platform/scroll/ScrollTypes.h" |
| 38 #include "public/platform/WebFocusType.h" | 38 #include "public/platform/WebFocusType.h" |
| 39 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
| 40 #include "wtf/PassOwnPtr.h" | 40 #include "wtf/PassOwnPtr.h" |
| 41 #include "wtf/Vector.h" | 41 #include "wtf/Vector.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) = 0; | 172 virtual void runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) = 0; |
| 173 | 173 |
| 174 // Asychronous request to enumerate all files in a directory chosen by the u
ser. | 174 // Asychronous request to enumerate all files in a directory chosen by the u
ser. |
| 175 virtual void enumerateChosenDirectory(FileChooser*) = 0; | 175 virtual void enumerateChosenDirectory(FileChooser*) = 0; |
| 176 | 176 |
| 177 // Allows ports to customize the type of graphics layers created by this pag
e. | 177 // Allows ports to customize the type of graphics layers created by this pag
e. |
| 178 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr;
} | 178 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr;
} |
| 179 | 179 |
| 180 // Pass 0 as the GraphicsLayer to detach the root layer. | 180 // Pass 0 as the GraphicsLayer to detach the root layer. |
| 181 // This sets the graphics layer for the LocalFrame's WebWidget, if it has on
e. Otherwise | 181 // This sets the graphics layer for the LocalFrame's WebWidget, if it has |
| 182 // it sets it for the WebViewImpl. | 182 // one. Otherwise it sets it for the WebViewImpl. |
| 183 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot)
= 0; | 183 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot)
= 0; |
| 184 | 184 |
| 185 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*, LocalFrame* localRoot) { } | 185 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*, LocalFrame* localRoot) { } |
| 186 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*, LocalFrame* localRoot) { } | 186 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*, LocalFrame* localRoot) { } |
| 187 | 187 |
| 188 virtual void enterFullScreenForElement(Element*) { } | 188 virtual void enterFullScreenForElement(Element*) { } |
| 189 virtual void exitFullScreenForElement(Element*) { } | 189 virtual void exitFullScreenForElement(Element*) { } |
| 190 | 190 |
| 191 virtual void clearCompositedSelection() { } | 191 virtual void clearCompositedSelection() { } |
| 192 virtual void updateCompositedSelection(const CompositedSelection&) { } | 192 virtual void updateCompositedSelection(const CompositedSelection&) { } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 private: | 260 private: |
| 261 bool canRunModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const St
ring& message); | 261 bool canRunModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const St
ring& message); |
| 262 void setToolTip(const HitTestResult&); | 262 void setToolTip(const HitTestResult&); |
| 263 | 263 |
| 264 Cursor m_lastSetMouseCursorForTesting; | 264 Cursor m_lastSetMouseCursorForTesting; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 } // namespace blink | 267 } // namespace blink |
| 268 | 268 |
| 269 #endif // ChromeClient_h | 269 #endif // ChromeClient_h |
| OLD | NEW |