OLD | NEW |
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/common/url_constants.h" | 13 #include "content/public/common/url_constants.h" |
13 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
14 #include "webkit/glue/web_intent_data.h" | 15 #include "webkit/glue/web_intent_data.h" |
15 | 16 |
16 TabContentsDelegate::TabContentsDelegate() { | 17 TabContentsDelegate::TabContentsDelegate() { |
17 } | 18 } |
18 | 19 |
19 TabContents* TabContentsDelegate::OpenURLFromTab( | 20 TabContents* TabContentsDelegate::OpenURLFromTab( |
20 TabContents* source, | 21 TabContents* source, |
21 const GURL& url, | 22 const GURL& url, |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, | 307 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, |
307 const string16& action, | 308 const string16& action, |
308 const string16& type, | 309 const string16& type, |
309 const string16& href, | 310 const string16& href, |
310 const string16& title, | 311 const string16& title, |
311 const string16& disposition) { | 312 const string16& disposition) { |
312 } | 313 } |
313 | 314 |
314 void TabContentsDelegate::WebIntentDispatch( | 315 void TabContentsDelegate::WebIntentDispatch( |
315 TabContents* tab, | 316 TabContents* tab, |
316 int routing_id, | 317 content::IntentsHost* intents_host) { |
317 const webkit_glue::WebIntentData& intent, | 318 // The caller passes this method ownership of the |intents_host|, but this |
318 int intent_id) { | 319 // empty implementation will not use it, so we delete it immediately. |
| 320 delete intents_host; |
319 } | 321 } |
320 | 322 |
321 void TabContentsDelegate::FindReply(TabContents* tab, | 323 void TabContentsDelegate::FindReply(TabContents* tab, |
322 int request_id, | 324 int request_id, |
323 int number_of_matches, | 325 int number_of_matches, |
324 const gfx::Rect& selection_rect, | 326 const gfx::Rect& selection_rect, |
325 int active_match_ordinal, | 327 int active_match_ordinal, |
326 bool final_update) { | 328 bool final_update) { |
327 } | 329 } |
328 | 330 |
(...skipping 27 matching lines...) Expand all Loading... |
356 attached_contents_.insert(tab_contents); | 358 attached_contents_.insert(tab_contents); |
357 } | 359 } |
358 | 360 |
359 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 361 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
360 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 362 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
361 attached_contents_.erase(tab_contents); | 363 attached_contents_.erase(tab_contents); |
362 } | 364 } |
363 | 365 |
364 void TabContentsDelegate::LostMouseLock() { | 366 void TabContentsDelegate::LostMouseLock() { |
365 } | 367 } |
OLD | NEW |