| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class WebInputEvent; | 49 class WebInputEvent; |
| 50 class WebMediaPlayer; | 50 class WebMediaPlayer; |
| 51 class WebMediaPlayerClient; | 51 class WebMediaPlayerClient; |
| 52 class WebNode; | 52 class WebNode; |
| 53 class WebString; | 53 class WebString; |
| 54 class WebURL; | 54 class WebURL; |
| 55 class WebURLLoader; | 55 class WebURLLoader; |
| 56 class WebURLResponse; | 56 class WebURLResponse; |
| 57 struct WebColorSuggestion; | 57 struct WebColorSuggestion; |
| 58 struct WebConsoleMessage; | 58 struct WebConsoleMessage; |
| 59 struct WebContextMenuData; | |
| 60 struct WebRect; | 59 struct WebRect; |
| 61 struct WebSize; | 60 struct WebSize; |
| 62 struct WebURLError; | 61 struct WebURLError; |
| 63 | 62 |
| 64 class WebFrameClient { | 63 class WebFrameClient { |
| 65 public: | 64 public: |
| 66 // Factory methods ----------------------------------------------------- | 65 // Factory methods ----------------------------------------------------- |
| 67 | 66 |
| 68 // May return null. | 67 // May return null. |
| 69 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*) { return 0; } | 68 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*) { return 0; } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 166 |
| 168 // Provides serialized markup of transition elements for use in the followin
g navigation. | 167 // Provides serialized markup of transition elements for use in the followin
g navigation. |
| 169 virtual void addNavigationTransitionData(const WebString& allowedDestination
Origin, const WebString& selector, const WebString& markup) { } | 168 virtual void addNavigationTransitionData(const WebString& allowedDestination
Origin, const WebString& selector, const WebString& markup) { } |
| 170 | 169 |
| 171 // Editing ------------------------------------------------------------- | 170 // Editing ------------------------------------------------------------- |
| 172 | 171 |
| 173 // These methods allow the client to intercept and overrule editing | 172 // These methods allow the client to intercept and overrule editing |
| 174 // operations. | 173 // operations. |
| 175 virtual void didChangeSelection(bool isSelectionEmpty) { } | 174 virtual void didChangeSelection(bool isSelectionEmpty) { } |
| 176 | 175 |
| 177 | |
| 178 // UI ------------------------------------------------------------------ | |
| 179 | |
| 180 // Shows a context menu with commands relevant to a specific element on | |
| 181 // the given frame. Additional context data is supplied. | |
| 182 virtual void showContextMenu(const WebContextMenuData&) { } | |
| 183 | |
| 184 // Called when the data attached to the currently displayed context menu is | |
| 185 // invalidated. The context menu may be closed if possible. | |
| 186 virtual void clearContextMenu() { } | |
| 187 | |
| 188 | |
| 189 // Low-level resource notifications ------------------------------------ | 176 // Low-level resource notifications ------------------------------------ |
| 190 | 177 |
| 191 // An element will request a resource. | 178 // An element will request a resource. |
| 192 virtual void willRequestResource(WebLocalFrame*, const WebCachedURLRequest&)
{ } | 179 virtual void willRequestResource(WebLocalFrame*, const WebCachedURLRequest&)
{ } |
| 193 | 180 |
| 194 // A request is about to be sent out, and the client may modify it. Request | 181 // A request is about to be sent out, and the client may modify it. Request |
| 195 // is writable, and changes to the URL, for example, will change the request | 182 // is writable, and changes to the URL, for example, will change the request |
| 196 // made. If this request is the result of a redirect, then redirectResponse | 183 // made. If this request is the result of a redirect, then redirectResponse |
| 197 // will be non-null and contain the response that triggered the redirect. | 184 // will be non-null and contain the response that triggered the redirect. |
| 198 virtual void willSendRequest( | 185 virtual void willSendRequest( |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 251 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
| 265 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 252 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
| 266 | 253 |
| 267 protected: | 254 protected: |
| 268 virtual ~WebFrameClient() { } | 255 virtual ~WebFrameClient() { } |
| 269 }; | 256 }; |
| 270 | 257 |
| 271 } // namespace blink | 258 } // namespace blink |
| 272 | 259 |
| 273 #endif | 260 #endif |
| OLD | NEW |