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

Side by Side Diff: chrome/renderer/extensions/extension_process_bindings.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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 | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/external_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/renderer/extensions/extension_process_bindings.h" 5 #include "chrome/renderer/extensions/extension_process_bindings.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/json/json_reader.h" 12 #include "base/json/json_reader.h"
13 #include "base/singleton.h" 13 #include "base/singleton.h"
14 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
15 #include "chrome/common/extensions/extension_message_bundle.h" 15 #include "chrome/common/extensions/extension_message_bundle.h"
16 #include "chrome/common/extensions/url_pattern.h" 16 #include "chrome/common/extensions/url_pattern.h"
17 #include "chrome/common/render_messages.h" 17 #include "chrome/common/render_messages.h"
18 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "chrome/renderer/extensions/bindings_utils.h" 19 #include "chrome/renderer/extensions/bindings_utils.h"
20 #include "chrome/renderer/extensions/event_bindings.h" 20 #include "chrome/renderer/extensions/event_bindings.h"
21 #include "chrome/renderer/extensions/js_only_v8_extensions.h" 21 #include "chrome/renderer/extensions/js_only_v8_extensions.h"
22 #include "chrome/renderer/extensions/renderer_extension_bindings.h" 22 #include "chrome/renderer/extensions/renderer_extension_bindings.h"
23 #include "chrome/renderer/render_view.h" 23 #include "chrome/renderer/render_view.h"
24 #include "grit/common_resources.h" 24 #include "grit/common_resources.h"
25 #include "grit/renderer_resources.h" 25 #include "grit/renderer_resources.h"
26 #include "third_party/skia/include/core/SkBitmap.h" 26 #include "third_party/skia/include/core/SkBitmap.h"
27 #include "third_party/skia/include/core/SkColor.h" 27 #include "third_party/skia/include/core/SkColor.h"
28 #include "webkit/api/public/WebFrame.h" 28 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
29 #include "webkit/api/public/WebURL.h" 29 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
30 #include "webkit/api/public/WebKit.h" 30 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h"
31 #include "webkit/api/public/WebSecurityPolicy.h" 31 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityPolicy.h"
32 32
33 using bindings_utils::GetStringResource; 33 using bindings_utils::GetStringResource;
34 using bindings_utils::ContextInfo; 34 using bindings_utils::ContextInfo;
35 using bindings_utils::ContextList; 35 using bindings_utils::ContextList;
36 using bindings_utils::GetContexts; 36 using bindings_utils::GetContexts;
37 using bindings_utils::GetPendingRequestMap; 37 using bindings_utils::GetPendingRequestMap;
38 using bindings_utils::PendingRequest; 38 using bindings_utils::PendingRequest;
39 using bindings_utils::PendingRequestMap; 39 using bindings_utils::PendingRequestMap;
40 using bindings_utils::ExtensionBase; 40 using bindings_utils::ExtensionBase;
41 using WebKit::WebFrame; 41 using WebKit::WebFrame;
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 return; 678 return;
679 679
680 v8::HandleScope handle_scope; 680 v8::HandleScope handle_scope;
681 WebFrame* frame = view->mainFrame(); 681 WebFrame* frame = view->mainFrame();
682 v8::Local<v8::Context> context = frame->mainWorldScriptContext(); 682 v8::Local<v8::Context> context = frame->mainWorldScriptContext();
683 v8::Handle<v8::Value> argv[1]; 683 v8::Handle<v8::Value> argv[1];
684 argv[0] = v8::String::New(type_str); 684 argv[0] = v8::String::New(type_str);
685 bindings_utils::CallFunctionInContext(context, "setViewType", 685 bindings_utils::CallFunctionInContext(context, "setViewType",
686 arraysize(argv), argv); 686 arraysize(argv), argv);
687 } 687 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/external_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698