OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple, Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 24 matching lines...) Expand all Loading... |
35 class NSMenu; | 35 class NSMenu; |
36 class NSResponder; | 36 class NSResponder; |
37 #endif | 37 #endif |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class AtomicString; | 41 class AtomicString; |
42 class FileChooser; | 42 class FileChooser; |
43 class FloatRect; | 43 class FloatRect; |
44 class Frame; | 44 class Frame; |
| 45 class Geolocation; |
45 class HitTestResult; | 46 class HitTestResult; |
46 class IntRect; | 47 class IntRect; |
47 class Node; | 48 class Node; |
48 class Page; | 49 class Page; |
49 class String; | 50 class String; |
50 class Widget; | 51 class Widget; |
51 | 52 |
52 struct FrameLoadRequest; | 53 struct FrameLoadRequest; |
53 struct WindowFeatures; | 54 struct WindowFeatures; |
54 | 55 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 virtual String generateReplacementFile(const String& path); | 146 virtual String generateReplacementFile(const String& path); |
146 | 147 |
147 virtual void enableSuddenTermination(); | 148 virtual void enableSuddenTermination(); |
148 virtual void disableSuddenTermination(); | 149 virtual void disableSuddenTermination(); |
149 | 150 |
150 virtual bool paintCustomScrollbar(GraphicsContext*, const FloatRect&, Sc
rollbarControlSize, | 151 virtual bool paintCustomScrollbar(GraphicsContext*, const FloatRect&, Sc
rollbarControlSize, |
151 ScrollbarControlState, ScrollbarPart p
ressedPart, bool vertical, | 152 ScrollbarControlState, ScrollbarPart p
ressedPart, bool vertical, |
152 float value, float proportion, Scrollb
arControlPartMask); | 153 float value, float proportion, Scrollb
arControlPartMask); |
153 virtual bool paintCustomScrollCorner(GraphicsContext*, const FloatRect&)
; | 154 virtual bool paintCustomScrollCorner(GraphicsContext*, const FloatRect&)
; |
154 | 155 |
155 virtual bool shouldAllowGeolocationForFrame(Frame*) { return false; } | 156 // This is an asynchronous call. The ChromeClient can display UI asking
the user for permission |
156 | 157 // to use Geolococation. The ChromeClient must call Geolocation::setShou
ldClearCache() appropriately. |
| 158 virtual void requestGeolocationPermissionForFrame(Frame*, Geolocation*)
{ } |
| 159 |
157 virtual void runOpenPanel(Frame*, PassRefPtr<FileChooser>) = 0; | 160 virtual void runOpenPanel(Frame*, PassRefPtr<FileChooser>) = 0; |
158 | 161 |
159 // Notification that the given form element has changed. This function | 162 // Notification that the given form element has changed. This function |
160 // will be called frequently, so handling should be very fast. | 163 // will be called frequently, so handling should be very fast. |
161 virtual void formStateDidChange(const Node*) = 0; | 164 virtual void formStateDidChange(const Node*) = 0; |
162 | 165 |
163 #if USE(ACCELERATED_COMPOSITING) | 166 #if USE(ACCELERATED_COMPOSITING) |
164 // Pass 0 as the GraphicsLayer to detatch the root layer. | 167 // Pass 0 as the GraphicsLayer to detatch the root layer. |
165 virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) { } | 168 virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) { } |
166 // Sets a flag to specify that the next time content is drawn to the win
dow, | 169 // Sets a flag to specify that the next time content is drawn to the win
dow, |
(...skipping 10 matching lines...) Expand all Loading... |
177 virtual void willPopUpMenu(NSMenu *) { } | 180 virtual void willPopUpMenu(NSMenu *) { } |
178 #endif | 181 #endif |
179 | 182 |
180 protected: | 183 protected: |
181 virtual ~ChromeClient() { } | 184 virtual ~ChromeClient() { } |
182 }; | 185 }; |
183 | 186 |
184 } | 187 } |
185 | 188 |
186 #endif // ChromeClient_h | 189 #endif // ChromeClient_h |
OLD | NEW |