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

Side by Side Diff: webkit/glue/webframe.h

Issue 6274: Greasemonkey support. (Closed)
Patch Set: Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBFRAME_H_ 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_
6 #define WEBKIT_GLUE_WEBFRAME_H_ 6 #define WEBKIT_GLUE_WEBFRAME_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void CallJSGC() = 0; 46 virtual void CallJSGC() = 0;
47 47
48 // WARNING: DON'T USE THIS METHOD unless you know what it is doing. 48 // WARNING: DON'T USE THIS METHOD unless you know what it is doing.
49 // 49 //
50 // Returns a pointer to the underlying implementation WebCore::Frame. 50 // Returns a pointer to the underlying implementation WebCore::Frame.
51 // Currently it is a hack to avoid including "Frame.h". The caller 51 // Currently it is a hack to avoid including "Frame.h". The caller
52 // casts the return value to WebCore::Frame. 52 // casts the return value to WebCore::Frame.
53 // TODO(fqian): Remove this method when V8 supports NP runtime. 53 // TODO(fqian): Remove this method when V8 supports NP runtime.
54 virtual void* GetFrameImplementation() = 0; 54 virtual void* GetFrameImplementation() = 0;
55 55
56 virtual void ExecuteJavaScript(const std::wstring& code,
57 const std::wstring& filename) = 0;
58
56 // Loads the given WebRequest. 59 // Loads the given WebRequest.
57 virtual void LoadRequest(WebRequest* request) = 0; 60 virtual void LoadRequest(WebRequest* request) = 0;
58 61
59 // This method is short-hand for calling LoadAlternateHTMLString with a dummy 62 // This method is short-hand for calling LoadAlternateHTMLString with a dummy
60 // request for the given base_url. 63 // request for the given base_url.
61 virtual void LoadHTMLString(const std::string& html_text, 64 virtual void LoadHTMLString(const std::string& html_text,
62 const GURL& base_url) = 0; 65 const GURL& base_url) = 0;
63 66
64 // Loads alternative HTML text in place of a particular URL. This method is 67 // Loads alternative HTML text in place of a particular URL. This method is
65 // designed with error pages in mind, in which case it would typically be 68 // designed with error pages in mind, in which case it would typically be
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 virtual bool IsReloadAllowingStaleData() const = 0; 358 virtual bool IsReloadAllowingStaleData() const = 0;
356 359
357 // Only for test_shell 360 // Only for test_shell
358 virtual int PendingFrameUnloadEventCount() const = 0; 361 virtual int PendingFrameUnloadEventCount() const = 0;
359 362
360 private: 363 private:
361 DISALLOW_COPY_AND_ASSIGN(WebFrame); 364 DISALLOW_COPY_AND_ASSIGN(WebFrame);
362 }; 365 };
363 366
364 #endif // WEBKIT_GLUE_WEBFRAME_H_ 367 #endif // WEBKIT_GLUE_WEBFRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698