| 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/gfx/text_elider.h" | 7 #include "app/gfx/text_elider.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 } | 808 } |
| 809 PopupNotificationVisibilityChanged(ShowingBlockedPopupNotification()); | 809 PopupNotificationVisibilityChanged(ShowingBlockedPopupNotification()); |
| 810 } | 810 } |
| 811 | 811 |
| 812 void TabContents::CloseAllSuppressedPopups() { | 812 void TabContents::CloseAllSuppressedPopups() { |
| 813 if (blocked_popups_) | 813 if (blocked_popups_) |
| 814 blocked_popups_->CloseAll(); | 814 blocked_popups_->CloseAll(); |
| 815 } | 815 } |
| 816 | 816 |
| 817 void TabContents::ExecuteCode(int request_id, const std::string& extension_id, | 817 void TabContents::ExecuteCode(int request_id, const std::string& extension_id, |
| 818 bool is_js_code, const std::string& code_string) { | 818 bool is_js_code, const std::string& code_string, |
| 819 bool all_frames) { |
| 819 render_view_host()->Send( | 820 render_view_host()->Send( |
| 820 new ViewMsg_ExecuteCode(render_view_host()->routing_id(), request_id, | 821 new ViewMsg_ExecuteCode(render_view_host()->routing_id(), request_id, |
| 821 extension_id, is_js_code, code_string)); | 822 extension_id, is_js_code, code_string, |
| 823 all_frames)); |
| 822 } | 824 } |
| 823 | 825 |
| 824 void TabContents::PopupNotificationVisibilityChanged(bool visible) { | 826 void TabContents::PopupNotificationVisibilityChanged(bool visible) { |
| 825 render_view_host()->PopupNotificationVisibilityChanged(visible); | 827 render_view_host()->PopupNotificationVisibilityChanged(visible); |
| 826 } | 828 } |
| 827 | 829 |
| 828 gfx::NativeView TabContents::GetContentNativeView() const { | 830 gfx::NativeView TabContents::GetContentNativeView() const { |
| 829 return view_->GetContentNativeView(); | 831 return view_->GetContentNativeView(); |
| 830 } | 832 } |
| 831 | 833 |
| (...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2632 render_view_host()->JavaScriptMessageBoxClosed(reply_msg, success, prompt); | 2634 render_view_host()->JavaScriptMessageBoxClosed(reply_msg, success, prompt); |
| 2633 } | 2635 } |
| 2634 | 2636 |
| 2635 void TabContents::SetSuppressMessageBoxes(bool suppress_message_boxes) { | 2637 void TabContents::SetSuppressMessageBoxes(bool suppress_message_boxes) { |
| 2636 set_suppress_javascript_messages(suppress_message_boxes); | 2638 set_suppress_javascript_messages(suppress_message_boxes); |
| 2637 } | 2639 } |
| 2638 | 2640 |
| 2639 void TabContents::set_encoding(const std::string& encoding) { | 2641 void TabContents::set_encoding(const std::string& encoding) { |
| 2640 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); | 2642 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); |
| 2641 } | 2643 } |
| OLD | NEW |