| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class WebMediaPlayerClient; | 43 class WebMediaPlayerClient; |
| 44 class WebPlugin; | 44 class WebPlugin; |
| 45 class WebSecurityOrigin; | 45 class WebSecurityOrigin; |
| 46 class WebString; | 46 class WebString; |
| 47 class WebURL; | 47 class WebURL; |
| 48 class WebURLRequest; | 48 class WebURLRequest; |
| 49 class WebURLResponse; | 49 class WebURLResponse; |
| 50 class WebWorker; | 50 class WebWorker; |
| 51 class WebWorkerClient; | 51 class WebWorkerClient; |
| 52 struct WebPluginParams; | 52 struct WebPluginParams; |
| 53 struct WebRect; |
| 53 struct WebSize; | 54 struct WebSize; |
| 54 struct WebURLError; | 55 struct WebURLError; |
| 55 | 56 |
| 56 class WebFrameClient { | 57 class WebFrameClient { |
| 57 public: | 58 public: |
| 58 // Factory methods ----------------------------------------------------- | 59 // Factory methods ----------------------------------------------------- |
| 59 | 60 |
| 60 // May return null. | 61 // May return null. |
| 61 virtual WebPlugin* createPlugin(WebFrame*, const WebPluginParams&) = 0; | 62 virtual WebPlugin* createPlugin(WebFrame*, const WebPluginParams&) = 0; |
| 62 | 63 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // Script in the page tried to allocate too much memory. | 215 // Script in the page tried to allocate too much memory. |
| 215 virtual void didExhaustMemoryAvailableForScript(WebFrame*) = 0; | 216 virtual void didExhaustMemoryAvailableForScript(WebFrame*) = 0; |
| 216 | 217 |
| 217 | 218 |
| 218 // Geometry notifications ---------------------------------------------- | 219 // Geometry notifications ---------------------------------------------- |
| 219 | 220 |
| 220 // The size of the content area changed. | 221 // The size of the content area changed. |
| 221 virtual void didChangeContentsSize(WebFrame*, const WebSize&) = 0; | 222 virtual void didChangeContentsSize(WebFrame*, const WebSize&) = 0; |
| 222 | 223 |
| 223 | 224 |
| 224 // FIXME need to add: | 225 // Find-in-page notifications ------------------------------------------ |
| 225 // find-in-page | 226 |
| 227 // Notifies how many matches have been found so far, for a given |
| 228 // identifier. |finalUpdate| specifies whether this is the last update |
| 229 // (all frames have completed scoping). |
| 230 virtual void reportFindInPageMatchCount( |
| 231 int identifier, int count, bool finalUpdate) = 0; |
| 232 |
| 233 // Notifies what tick-mark rect is currently selected. The given |
| 234 // identifier lets the client know which request this message belongs |
| 235 // to, so that it can choose to ignore the message if it has moved on |
| 236 // to other things. The selection rect is expected to have coordinates |
| 237 // relative to the top left corner of the web page area and represent |
| 238 // where on the screen the selection rect is currently located. |
| 239 virtual void reportFindInPageSelection( |
| 240 int identifier, int activeMatchOrdinal, const WebRect& selection) = 0; |
| 226 | 241 |
| 227 protected: | 242 protected: |
| 228 ~WebFrameClient() { } | 243 ~WebFrameClient() { } |
| 229 }; | 244 }; |
| 230 | 245 |
| 231 } // namespace WebKit | 246 } // namespace WebKit |
| 232 | 247 |
| 233 #endif | 248 #endif |
| OLD | NEW |