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

Side by Side Diff: chrome/test/automation/tab_proxy.cc

Issue 3539002: Add UI test for click-to-play. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: move message declaration to bottom of file Created 10 years, 2 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
« no previous file with comments | « chrome/test/automation/tab_proxy.h ('k') | chrome/test/data/npapi/click_to_play.html » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/test/automation/tab_proxy.h" 5 #include "chrome/test/automation/tab_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 bool TabProxy::OverrideEncoding(const std::string& encoding) { 722 bool TabProxy::OverrideEncoding(const std::string& encoding) {
723 if (!is_valid()) 723 if (!is_valid())
724 return false; 724 return false;
725 725
726 bool succeeded = false; 726 bool succeeded = false;
727 sender_->Send(new AutomationMsg_OverrideEncoding(0, handle_, encoding, 727 sender_->Send(new AutomationMsg_OverrideEncoding(0, handle_, encoding,
728 &succeeded)); 728 &succeeded));
729 return succeeded; 729 return succeeded;
730 } 730 }
731 731
732 bool TabProxy::LoadBlockedPlugins() {
733 if (!is_valid())
734 return false;
735
736 bool succeeded = false;
737 sender_->Send(new AutomationMsg_LoadBlockedPlugins(0, handle_, &succeeded));
738 return succeeded;
739 }
740
732 #if defined(OS_WIN) 741 #if defined(OS_WIN)
733 void TabProxy::Reposition(HWND window, HWND window_insert_after, int left, 742 void TabProxy::Reposition(HWND window, HWND window_insert_after, int left,
734 int top, int width, int height, int flags, 743 int top, int width, int height, int flags,
735 HWND parent_window) { 744 HWND parent_window) {
736 IPC::Reposition_Params params = {0}; 745 IPC::Reposition_Params params = {0};
737 params.window = window; 746 params.window = window;
738 params.window_insert_after = window_insert_after; 747 params.window_insert_after = window_insert_after;
739 params.left = left; 748 params.left = left;
740 params.top = top; 749 params.top = top;
741 params.width = width; 750 params.width = width;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 json)); 830 json));
822 } 831 }
823 832
824 void TabProxy::FirstObjectAdded() { 833 void TabProxy::FirstObjectAdded() {
825 AddRef(); 834 AddRef();
826 } 835 }
827 836
828 void TabProxy::LastObjectRemoved() { 837 void TabProxy::LastObjectRemoved() {
829 Release(); 838 Release();
830 } 839 }
OLDNEW
« no previous file with comments | « chrome/test/automation/tab_proxy.h ('k') | chrome/test/data/npapi/click_to_play.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698