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/common/url_constants.h" | 12 #include "content/common/url_constants.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "webkit/glue/web_intent_data.h" |
14 | 15 |
15 TabContentsDelegate::TabContentsDelegate() { | 16 TabContentsDelegate::TabContentsDelegate() { |
16 } | 17 } |
17 | 18 |
18 TabContents* TabContentsDelegate::OpenURLFromTab( | 19 TabContents* TabContentsDelegate::OpenURLFromTab( |
19 TabContents* source, | 20 TabContents* source, |
20 const GURL& url, | 21 const GURL& url, |
21 const GURL& referrer, | 22 const GURL& referrer, |
22 WindowOpenDisposition disposition, | 23 WindowOpenDisposition disposition, |
23 PageTransition::Type transition) { | 24 PageTransition::Type transition) { |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 const string16& title) { | 303 const string16& title) { |
303 } | 304 } |
304 | 305 |
305 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, | 306 void TabContentsDelegate::RegisterIntentHandler(TabContents* tab, |
306 const string16& action, | 307 const string16& action, |
307 const string16& type, | 308 const string16& type, |
308 const string16& href, | 309 const string16& href, |
309 const string16& title) { | 310 const string16& title) { |
310 } | 311 } |
311 | 312 |
312 void TabContentsDelegate::WebIntentDispatch(TabContents* tab, | 313 void TabContentsDelegate::WebIntentDispatch( |
313 int routing_id, | 314 TabContents* tab, |
314 const string16& action, | 315 int routing_id, |
315 const string16& type, | 316 const webkit_glue::WebIntentData& intent, |
316 const string16& data, | 317 int intent_id) { |
317 int intent_id) { | |
318 } | 318 } |
319 | 319 |
320 void TabContentsDelegate::FindReply(TabContents* tab, | 320 void TabContentsDelegate::FindReply(TabContents* tab, |
321 int request_id, | 321 int request_id, |
322 int number_of_matches, | 322 int number_of_matches, |
323 const gfx::Rect& selection_rect, | 323 const gfx::Rect& selection_rect, |
324 int active_match_ordinal, | 324 int active_match_ordinal, |
325 bool final_update) { | 325 bool final_update) { |
326 } | 326 } |
327 | 327 |
(...skipping 15 matching lines...) Expand all Loading... |
343 | 343 |
344 void TabContentsDelegate::Attach(TabContents* tab_contents) { | 344 void TabContentsDelegate::Attach(TabContents* tab_contents) { |
345 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); | 345 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
346 attached_contents_.insert(tab_contents); | 346 attached_contents_.insert(tab_contents); |
347 } | 347 } |
348 | 348 |
349 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 349 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
350 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 350 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
351 attached_contents_.erase(tab_contents); | 351 attached_contents_.erase(tab_contents); |
352 } | 352 } |
OLD | NEW |