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

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

Issue 173556: Implement script API:executeScript (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 months 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 Details<TabContents>(this)); 838 Details<TabContents>(this));
839 } 839 }
840 PopupNotificationVisibilityChanged(ShowingBlockedPopupNotification()); 840 PopupNotificationVisibilityChanged(ShowingBlockedPopupNotification());
841 } 841 }
842 842
843 void TabContents::CloseAllSuppressedPopups() { 843 void TabContents::CloseAllSuppressedPopups() {
844 if (blocked_popups_) 844 if (blocked_popups_)
845 blocked_popups_->CloseAll(); 845 blocked_popups_->CloseAll();
846 } 846 }
847 847
848 void TabContents::ExecuteCode(int request_id, const std::string& extension_id,
849 bool is_js_code, const std::string& code_string) {
850 render_view_host()->Send(
851 new ViewMsg_ExecuteCode(render_view_host()->routing_id(), request_id,
852 extension_id, is_js_code, code_string));
853 }
854
848 void TabContents::PopupNotificationVisibilityChanged(bool visible) { 855 void TabContents::PopupNotificationVisibilityChanged(bool visible) {
849 render_view_host()->PopupNotificationVisibilityChanged(visible); 856 render_view_host()->PopupNotificationVisibilityChanged(visible);
850 } 857 }
851 858
852 gfx::NativeView TabContents::GetContentNativeView() const { 859 gfx::NativeView TabContents::GetContentNativeView() const {
853 return view_->GetContentNativeView(); 860 return view_->GetContentNativeView();
854 } 861 }
855 862
856 gfx::NativeView TabContents::GetNativeView() const { 863 gfx::NativeView TabContents::GetNativeView() const {
857 return view_->GetNativeView(); 864 return view_->GetNativeView();
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698