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

Side by Side Diff: content/renderer/intents_dispatcher.cc

Issue 8788003: Update includes to new header locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « content/renderer/intents_dispatcher.h ('k') | content/renderer/mhtml_generator.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/renderer/intents_dispatcher.h" 5 #include "content/renderer/intents_dispatcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "content/common/intents_messages.h" 9 #include "content/common/intents_messages.h"
10 #include "content/renderer/render_view_impl.h" 10 #include "content/renderer/render_view_impl.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h "
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa lue.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
17 #include "v8/include/v8.h" 17 #include "v8/include/v8.h"
18 #include "webkit/glue/cpp_bound_class.h" 18 #include "webkit/glue/cpp_bound_class.h"
19 19
20 using WebKit::WebCString; 20 using WebKit::WebCString;
21 using WebKit::WebString; 21 using WebKit::WebString;
22 22
23 // This class encapsulates the API the Intent object will expose to Javascript. 23 // This class encapsulates the API the Intent object will expose to Javascript.
24 // It is made available to the Javascript runtime in the service page using 24 // It is made available to the Javascript runtime in the service page using
25 // NPAPI methods as with plugin/Javascript interaction objects and other 25 // NPAPI methods as with plugin/Javascript interaction objects and other
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // sub-frames. TODO(gbillock): This policy needs to be fine-tuned and 186 // sub-frames. TODO(gbillock): This policy needs to be fine-tuned and
187 // documented. 187 // documented.
188 void IntentsDispatcher::DidClearWindowObject(WebKit::WebFrame* frame) { 188 void IntentsDispatcher::DidClearWindowObject(WebKit::WebFrame* frame) {
189 if (intent_.get() == NULL || frame->top() != frame) 189 if (intent_.get() == NULL || frame->top() != frame)
190 return; 190 return;
191 191
192 delivered_intent_.reset(new BoundDeliveredIntent( 192 delivered_intent_.reset(new BoundDeliveredIntent(
193 intent_->action, intent_->type, intent_->data, this, frame)); 193 intent_->action, intent_->type, intent_->data, this, frame));
194 delivered_intent_->BindToJavascript(frame, "intent"); 194 delivered_intent_->BindToJavascript(frame, "intent");
195 } 195 }
OLDNEW
« no previous file with comments | « content/renderer/intents_dispatcher.h ('k') | content/renderer/mhtml_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698