Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: public/web/WebLocalFrame.h

Issue 595713002: Move local frame-only methods out of WebFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebFrame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 25
26 // Returns the frame corresponding to the given context. This can return 0 26 // Returns the frame corresponding to the given context. This can return 0
27 // if the context is detached from the frame, or if the context doesn't 27 // if the context is detached from the frame, or if the context doesn't
28 // correspond to a frame (e.g., workers). 28 // correspond to a frame (e.g., workers).
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 ---------------------------------------------
36 virtual void addStyleSheetByURL(const WebString& url) = 0;
37 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0;
38 35
36 // Navigation Ping --------------------------------------------------------
39 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL ) = 0; 37 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL ) = 0;
40 38
41 39
42 // Navigation State ------------------------------------------------------- 40 // Navigation State -------------------------------------------------------
43 41
44 // Returns true if the current frame's load event has not completed. 42 // Returns true if the current frame's load event has not completed.
45 virtual bool isLoading() const = 0; 43 virtual bool isLoading() const = 0;
46 44
47 // Returns true if any resource load is currently in progress. Exposed 45 // Returns true if any resource load is currently in progress. Exposed
48 // primarily for use in layout tests. You probably want isLoading() 46 // primarily for use in layout tests. You probably want isLoading()
49 // instead. 47 // instead.
50 virtual bool isResourceLoadInProgress() const = 0; 48 virtual bool isResourceLoadInProgress() const = 0;
49
50
51 // Navigation Transitions -------------------------------------------------
52 virtual void addStyleSheetByURL(const WebString& url) = 0;
53 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0;
54
55
56 // Orientation Changes ----------------------------------------------------
57
58 // Notify the frame that the screen orientation has changed.
59 virtual void sendOrientationChangeEvent() = 0;
60
61
62 // Scripting --------------------------------------------------------------
63 // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake
64 // UserGestureIndicator before execution.
65 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS criptSource&) = 0;
66
67 // Associates an isolated world with human-readable name which is useful for
68 // extension debugging.
69 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0;
51 }; 70 };
52 71
53 } // namespace blink 72 } // namespace blink
54 73
55 #endif // WebLocalFrame_h 74 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698