| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // frame. There can be many V8 contexts associated with this frame, one for | 148 // frame. There can be many V8 contexts associated with this frame, one for |
| 149 // each isolated world and one for the main world. If you don't know what | 149 // each isolated world and one for the main world. If you don't know what |
| 150 // the "main world" or an "isolated world" is, then you probably shouldn't | 150 // the "main world" or an "isolated world" is, then you probably shouldn't |
| 151 // be calling this API. | 151 // be calling this API. |
| 152 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; | 152 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; |
| 153 | 153 |
| 154 // Navigation ---------------------------------------------------------- | 154 // Navigation ---------------------------------------------------------- |
| 155 | 155 |
| 156 virtual void load(const WebURL&, mojo::ScopedDataPipeConsumerHandle) = 0; | 156 virtual void load(const WebURL&, mojo::ScopedDataPipeConsumerHandle) = 0; |
| 157 | 157 |
| 158 // Sets the referrer for the given request to be the specified URL or | |
| 159 // if that is null, then it sets the referrer to the referrer that the | |
| 160 // frame would use for subresources. NOTE: This method also filters | |
| 161 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as | |
| 162 // the referrer for a HTTP request). | |
| 163 virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) = 0; | |
| 164 | |
| 165 // Returns the number of registered unload listeners. | |
| 166 virtual unsigned unloadListenerCount() const = 0; | |
| 167 | |
| 168 | 158 |
| 169 // Editing ------------------------------------------------------------- | 159 // Editing ------------------------------------------------------------- |
| 170 | 160 |
| 171 // Replaces the selection with the given text. | 161 // Replaces the selection with the given text. |
| 172 virtual void replaceSelection(const WebString& text) = 0; | 162 virtual void replaceSelection(const WebString& text) = 0; |
| 173 | 163 |
| 174 virtual void insertText(const WebString& text) = 0; | 164 virtual void insertText(const WebString& text) = 0; |
| 175 | 165 |
| 176 virtual void setMarkedText(const WebString& text, unsigned location, unsigne
d length) = 0; | 166 virtual void setMarkedText(const WebString& text, unsigned location, unsigne
d length) = 0; |
| 177 virtual void unmarkText() = 0; | 167 virtual void unmarkText() = 0; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 private: | 254 private: |
| 265 }; | 255 }; |
| 266 | 256 |
| 267 #if BLINK_IMPLEMENTATION | 257 #if BLINK_IMPLEMENTATION |
| 268 Frame* toCoreFrame(const WebFrame*); | 258 Frame* toCoreFrame(const WebFrame*); |
| 269 #endif | 259 #endif |
| 270 | 260 |
| 271 } // namespace blink | 261 } // namespace blink |
| 272 | 262 |
| 273 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ | 263 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ |
| OLD | NEW |