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

Side by Side Diff: webkit/api/src/WebKit.cpp

Issue 159542: Add a WebKit API that registers a V8 extension to be loaded into content (Closed)
Patch Set: final Created 11 years, 4 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
« no previous file with comments | « webkit/api/public/WebKit.h ('k') | webkit/glue/webframe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 { 100 {
101 WebCore::V8Proxy::registerExtension(extension, WebString()); 101 WebCore::V8Proxy::registerExtension(extension, WebString());
102 } 102 }
103 103
104 void registerExtension(v8::Extension* extension, 104 void registerExtension(v8::Extension* extension,
105 const WebString& schemeRestriction) 105 const WebString& schemeRestriction)
106 { 106 {
107 WebCore::V8Proxy::registerExtension(extension, schemeRestriction); 107 WebCore::V8Proxy::registerExtension(extension, schemeRestriction);
108 } 108 }
109 109
110 void registerExtension(v8::Extension* extension, int extensionGroup)
111 {
112 WebCore::V8Proxy::registerExtension(extension, extensionGroup);
113 }
114
110 void flushConsoleMessages() 115 void flushConsoleMessages()
111 { 116 {
112 WebCore::V8Proxy::processConsoleMessages(); 117 WebCore::V8Proxy::processConsoleMessages();
113 } 118 }
114 119
115 void enableMediaPlayer() 120 void enableMediaPlayer()
116 { 121 {
117 #if ENABLE(VIDEO) 122 #if ENABLE(VIDEO)
118 WebMediaPlayerClientImpl::setIsEnabled(true); 123 WebMediaPlayerClientImpl::setIsEnabled(true);
119 #endif 124 #endif
(...skipping 11 matching lines...) Expand all
131 #endif 136 #endif
132 } 137 }
133 138
134 bool databasesEnabled() 139 bool databasesEnabled()
135 { 140 {
136 return s_databasesEnabled; 141 return s_databasesEnabled;
137 } 142 }
138 143
139 144
140 } // namespace WebKit 145 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/api/public/WebKit.h ('k') | webkit/glue/webframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698