OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/browser/web_contents.h" | 5 #include "chrome/browser/web_contents.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
10 #include "chrome/app/locales/locale_settings.h" | 10 #include "chrome/app/locales/locale_settings.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 405 } |
406 | 406 |
407 void WebContents::Copy() { | 407 void WebContents::Copy() { |
408 render_view_host()->Copy(); | 408 render_view_host()->Copy(); |
409 } | 409 } |
410 | 410 |
411 void WebContents::Paste() { | 411 void WebContents::Paste() { |
412 render_view_host()->Paste(); | 412 render_view_host()->Paste(); |
413 } | 413 } |
414 | 414 |
| 415 void WebContents::DisassociateFromPopupCount() { |
| 416 render_view_host()->DisassociateFromPopupCount(); |
| 417 } |
| 418 |
415 void WebContents::DidBecomeSelected() { | 419 void WebContents::DidBecomeSelected() { |
416 TabContents::DidBecomeSelected(); | 420 TabContents::DidBecomeSelected(); |
417 | 421 |
418 if (render_widget_host_view()) | 422 if (render_widget_host_view()) |
419 render_widget_host_view()->DidBecomeSelected(); | 423 render_widget_host_view()->DidBecomeSelected(); |
420 | 424 |
421 CacheManagerHost::GetInstance()->ObserveActivity(process()->host_id()); | 425 CacheManagerHost::GetInstance()->ObserveActivity(process()->host_id()); |
422 } | 426 } |
423 | 427 |
424 void WebContents::WasHidden() { | 428 void WebContents::WasHidden() { |
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1971 // The favicon url isn't valid. This means there really isn't a favicon, | 1975 // The favicon url isn't valid. This means there really isn't a favicon, |
1972 // or the favicon url wasn't obtained before the load started. This assumes | 1976 // or the favicon url wasn't obtained before the load started. This assumes |
1973 // the later. | 1977 // the later. |
1974 // TODO(sky): Need a way to set the favicon that doesn't involve generating | 1978 // TODO(sky): Need a way to set the favicon that doesn't involve generating |
1975 // its url. | 1979 // its url. |
1976 new_url->SetFavIconURL(TemplateURL::GenerateFaviconURL(params.referrer)); | 1980 new_url->SetFavIconURL(TemplateURL::GenerateFaviconURL(params.referrer)); |
1977 } | 1981 } |
1978 new_url->set_safe_for_autoreplace(true); | 1982 new_url->set_safe_for_autoreplace(true); |
1979 url_model->Add(new_url); | 1983 url_model->Add(new_url); |
1980 } | 1984 } |
OLD | NEW |