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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 8934011: Rename IntentsHost -> WebIntentsDispatcher and IntentsDispatcher -> WebIntentsHost. (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
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/browser/tab_contents/tab_contents_delegate.h" 5 #include "content/browser/tab_contents/tab_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/browser/javascript_dialogs.h" 10 #include "content/browser/javascript_dialogs.h"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/public/browser/intents_host.h" 12 #include "content/public/browser/web_intents_dispatcher.h"
13 #include "content/public/common/url_constants.h" 13 #include "content/public/common/url_constants.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "webkit/glue/web_intent_data.h" 15 #include "webkit/glue/web_intent_data.h"
16 16
17 TabContentsDelegate::TabContentsDelegate() { 17 TabContentsDelegate::TabContentsDelegate() {
18 } 18 }
19 19
20 TabContents* TabContentsDelegate::OpenURLFromTab(TabContents* source, 20 TabContents* TabContentsDelegate::OpenURLFromTab(TabContents* source,
21 const OpenURLParams& params) { 21 const OpenURLParams& params) {
22 return NULL; 22 return NULL;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, 293 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab,
294 const string16& action, 294 const string16& action,
295 const string16& type, 295 const string16& type,
296 const string16& href, 296 const string16& href,
297 const string16& title, 297 const string16& title,
298 const string16& disposition) { 298 const string16& disposition) {
299 } 299 }
300 300
301 void TabContentsDelegate::WebIntentDispatch( 301 void TabContentsDelegate::WebIntentDispatch(
302 TabContents* tab, 302 TabContents* tab,
303 content::IntentsHost* intents_host) { 303 content::WebIntentsDispatcher* intents_dispatcher) {
304 // The caller passes this method ownership of the |intents_host|, but this 304 // The caller passes this method ownership of the |intents_dispatcher|, but
305 // empty implementation will not use it, so we delete it immediately. 305 // this empty implementation will not use it, so we delete it immediately.
306 delete intents_host; 306 delete intents_dispatcher;
307 } 307 }
308 308
309 void TabContentsDelegate::FindReply(TabContents* tab, 309 void TabContentsDelegate::FindReply(TabContents* tab,
310 int request_id, 310 int request_id,
311 int number_of_matches, 311 int number_of_matches,
312 const gfx::Rect& selection_rect, 312 const gfx::Rect& selection_rect,
313 int active_match_ordinal, 313 int active_match_ordinal,
314 bool final_update) { 314 bool final_update) {
315 } 315 }
316 316
(...skipping 27 matching lines...) Expand all
344 attached_contents_.insert(tab_contents); 344 attached_contents_.insert(tab_contents);
345 } 345 }
346 346
347 void TabContentsDelegate::Detach(TabContents* tab_contents) { 347 void TabContentsDelegate::Detach(TabContents* tab_contents) {
348 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 348 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
349 attached_contents_.erase(tab_contents); 349 attached_contents_.erase(tab_contents);
350 } 350 }
351 351
352 void TabContentsDelegate::LostMouseLock() { 352 void TabContentsDelegate::LostMouseLock() {
353 } 353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698