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

Side by Side Diff: chrome_frame/chrome_frame_automation.cc

Issue 8413051: Move PageZoom enum into content/public/common and into the content namespace. Also move content_c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/external_tab.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_frame/chrome_frame_automation.h" 5 #include "chrome_frame/chrome_frame_automation.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 } 1203 }
1204 1204
1205 void ChromeFrameAutomationClient::SetUrlFetcher( 1205 void ChromeFrameAutomationClient::SetUrlFetcher(
1206 PluginUrlRequestManager* url_fetcher) { 1206 PluginUrlRequestManager* url_fetcher) {
1207 DCHECK(url_fetcher != NULL); 1207 DCHECK(url_fetcher != NULL);
1208 url_fetcher_ = url_fetcher; 1208 url_fetcher_ = url_fetcher;
1209 url_fetcher_flags_ = url_fetcher->GetThreadSafeFlags(); 1209 url_fetcher_flags_ = url_fetcher->GetThreadSafeFlags();
1210 url_fetcher_->set_delegate(this); 1210 url_fetcher_->set_delegate(this);
1211 } 1211 }
1212 1212
1213 void ChromeFrameAutomationClient::SetZoomLevel(PageZoom::Function zoom_level) { 1213 void ChromeFrameAutomationClient::SetZoomLevel(content::PageZoom zoom_level) {
1214 if (automation_server_) { 1214 if (automation_server_) {
1215 automation_server_->Send(new AutomationMsg_SetZoomLevel(tab_handle_, 1215 automation_server_->Send(new AutomationMsg_SetZoomLevel(tab_handle_,
1216 zoom_level)); 1216 zoom_level));
1217 } 1217 }
1218 } 1218 }
1219 1219
1220 void ChromeFrameAutomationClient::OnUnload(bool* should_unload) { 1220 void ChromeFrameAutomationClient::OnUnload(bool* should_unload) {
1221 *should_unload = true; 1221 *should_unload = true;
1222 if (automation_server_) { 1222 if (automation_server_) {
1223 const DWORD kUnloadEventTimeout = 20000; 1223 const DWORD kUnloadEventTimeout = 20000;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 const net::URLRequestStatus& status) { 1266 const net::URLRequestStatus& status) {
1267 automation_server_->Send(new AutomationMsg_RequestEnd( 1267 automation_server_->Send(new AutomationMsg_RequestEnd(
1268 tab_->handle(), request_id, status)); 1268 tab_->handle(), request_id, status));
1269 } 1269 }
1270 1270
1271 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, 1271 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success,
1272 const GURL& url, const std::string& cookie_string, int cookie_id) { 1272 const GURL& url, const std::string& cookie_string, int cookie_id) {
1273 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( 1273 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(
1274 tab_->handle(), success, url, cookie_string, cookie_id)); 1274 tab_->handle(), success, url, cookie_string, cookie_id));
1275 } 1275 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/external_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698