Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include "WebFrame.h" | 8 #include "WebFrame.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Handle<v8::Context>); | 29 BLINK_EXPORT static WebLocalFrame* frameForContext(v8::Handle<v8::Context>); |
| 30 | 30 |
| 31 // Returns the frame inside a given frame or iframe element. Returns 0 if | 31 // Returns the frame inside a given frame or iframe element. Returns 0 if |
| 32 // the given element is not a frame, iframe or if the frame is empty. | 32 // the given element is not a frame, iframe or if the frame is empty. |
| 33 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); | 33 BLINK_EXPORT static WebLocalFrame* fromFrameOwnerElement(const WebElement&); |
| 34 | 34 |
| 35 // Navigation Transitions --------------------------------------------- | 35 // Navigation Transitions --------------------------------------------- |
| 36 virtual void addStyleSheetByURL(const WebString& url) = 0; | 36 virtual void addStyleSheetByURL(const WebString& url) = 0; |
| 37 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0; | 37 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0; |
| 38 | 38 |
| 39 // FIXME: No clue. What is this for? Probably <a ping>... | |
| 39 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL ) = 0; | 40 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL ) = 0; |
| 40 | 41 |
| 41 | |
|
jamesr
2014/09/23 02:39:16
i think 2 blank lines between sections is delibera
dcheng
2014/09/23 03:04:11
Done.
| |
| 42 // Navigation State ------------------------------------------------------- | 42 // Navigation State ------------------------------------------------------- |
| 43 | 43 |
| 44 // Returns true if the current frame's load event has not completed. | 44 // Returns true if the current frame's load event has not completed. |
| 45 virtual bool isLoading() const = 0; | 45 virtual bool isLoading() const = 0; |
| 46 | 46 |
| 47 // Returns true if any resource load is currently in progress. Exposed | 47 // Returns true if any resource load is currently in progress. Exposed |
| 48 // primarily for use in layout tests. You probably want isLoading() | 48 // primarily for use in layout tests. You probably want isLoading() |
| 49 // instead. | 49 // instead. |
| 50 virtual bool isResourceLoadInProgress() const = 0; | 50 virtual bool isResourceLoadInProgress() const = 0; |
| 51 | |
| 52 // Orientation Changes ---------------------------------------------------- | |
| 53 | |
| 54 // Notify the frame that the screen orientation has changed. | |
| 55 virtual void sendOrientationChangeEvent() = 0; | |
| 56 | |
| 57 // Scripting -------------------------------------------------------------- | |
| 58 // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake | |
| 59 // UserGestureIndicator before execution. | |
| 60 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS criptSource&) = 0; | |
| 61 | |
| 62 // Associates an isolated world with human-readable name which is useful for | |
| 63 // extension debugging. | |
| 64 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0; | |
| 51 }; | 65 }; |
| 52 | 66 |
| 53 } // namespace blink | 67 } // namespace blink |
| 54 | 68 |
| 55 #endif // WebLocalFrame_h | 69 #endif // WebLocalFrame_h |
| OLD | NEW |