Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 421005: Make executeScript and insertCSS inject code into all frames.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2629 render_view_host()->JavaScriptMessageBoxClosed(reply_msg, success, prompt); 2631 render_view_host()->JavaScriptMessageBoxClosed(reply_msg, success, prompt);
2630 } 2632 }
2631 2633
2632 void TabContents::SetSuppressMessageBoxes(bool suppress_message_boxes) { 2634 void TabContents::SetSuppressMessageBoxes(bool suppress_message_boxes) {
2633 set_suppress_javascript_messages(suppress_message_boxes); 2635 set_suppress_javascript_messages(suppress_message_boxes);
2634 } 2636 }
2635 2637
2636 void TabContents::set_encoding(const std::string& encoding) { 2638 void TabContents::set_encoding(const std::string& encoding) {
2637 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); 2639 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding);
2638 } 2640 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698