OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 2385 matching lines...) Loading... |
2396 if (!delegate()) | 2396 if (!delegate()) |
2397 return false; | 2397 return false; |
2398 | 2398 |
2399 return delegate()->IsExternalTabContainer(); | 2399 return delegate()->IsExternalTabContainer(); |
2400 } | 2400 } |
2401 | 2401 |
2402 void TabContents::DidInsertCSS() { | 2402 void TabContents::DidInsertCSS() { |
2403 // This RVHDelegate function is used for extensions and not us. | 2403 // This RVHDelegate function is used for extensions and not us. |
2404 } | 2404 } |
2405 | 2405 |
| 2406 void TabContents::FocusedNodeChanged() { |
| 2407 NotificationService::current()->Notify( |
| 2408 NotificationType::FOCUS_CHANGED_IN_PAGE, |
| 2409 Source<RenderViewHost>(render_view_host()), |
| 2410 NotificationService::NoDetails()); |
| 2411 } |
| 2412 |
2406 void TabContents::FileSelected(const FilePath& path, | 2413 void TabContents::FileSelected(const FilePath& path, |
2407 int index, void* params) { | 2414 int index, void* params) { |
2408 render_view_host()->FileSelected(path); | 2415 render_view_host()->FileSelected(path); |
2409 } | 2416 } |
2410 | 2417 |
2411 void TabContents::MultiFilesSelected(const std::vector<FilePath>& files, | 2418 void TabContents::MultiFilesSelected(const std::vector<FilePath>& files, |
2412 void* params) { | 2419 void* params) { |
2413 render_view_host()->MultiFilesSelected(files); | 2420 render_view_host()->MultiFilesSelected(files); |
2414 } | 2421 } |
2415 | 2422 |
(...skipping 96 matching lines...) Loading... |
2512 | 2519 |
2513 default: | 2520 default: |
2514 NOTREACHED(); | 2521 NOTREACHED(); |
2515 } | 2522 } |
2516 } | 2523 } |
2517 | 2524 |
2518 void TabContents::set_encoding(const std::string& encoding) { | 2525 void TabContents::set_encoding(const std::string& encoding) { |
2519 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); | 2526 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); |
2520 } | 2527 } |
2521 | 2528 |
OLD | NEW |