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

Side by Side Diff: chrome_frame/chrome_frame_automation.cc

Issue 334020: Attempts to get the chrome_frame_tests going again on the chrome frame builde... (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
« no previous file with comments | « chrome_frame/chrome_frame_activex_base.h ('k') | no next file » | 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_frame/chrome_frame_automation.h" 5 #include "chrome_frame/chrome_frame_automation.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/file_version_info.h" 10 #include "base/file_version_info.h"
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 1035
1036 return is_valid; 1036 return is_valid;
1037 } 1037 }
1038 1038
1039 void ChromeFrameAutomationClient::CleanupRequests() { 1039 void ChromeFrameAutomationClient::CleanupRequests() {
1040 while (request_map_.size()) { 1040 while (request_map_.size()) {
1041 PluginUrlRequest* request = request_map_.begin()->second; 1041 PluginUrlRequest* request = request_map_.begin()->second;
1042 if (request) { 1042 if (request) {
1043 int request_id = request->id(); 1043 int request_id = request->id();
1044 request->Stop(); 1044 request->Stop();
1045 DCHECK(request_map_.end() == request_map_.find(request_id));
1046 } 1045 }
1047 } 1046 }
1048 1047
1049 DCHECK(request_map_.empty()); 1048 DCHECK(request_map_.empty());
1050 request_map_.clear(); 1049 request_map_.clear();
1051 } 1050 }
1052 1051
1053 bool ChromeFrameAutomationClient::Reinitialize( 1052 bool ChromeFrameAutomationClient::Reinitialize(
1054 ChromeFrameDelegate* delegate) { 1053 ChromeFrameDelegate* delegate) {
1055 if (!tab_.get() || !::IsWindow(chrome_window_)) { 1054 if (!tab_.get() || !::IsWindow(chrome_window_)) {
(...skipping 26 matching lines...) Expand all
1082 if (font_size < SMALLEST_FONT || 1081 if (font_size < SMALLEST_FONT ||
1083 font_size > LARGEST_FONT) { 1082 font_size > LARGEST_FONT) {
1084 NOTREACHED() << "Invalid font size specified : " 1083 NOTREACHED() << "Invalid font size specified : "
1085 << font_size; 1084 << font_size;
1086 return; 1085 return;
1087 } 1086 }
1088 1087
1089 Send(new AutomationMsg_SetPageFontSize(0, tab_handle_, font_size)); 1088 Send(new AutomationMsg_SetPageFontSize(0, tab_handle_, font_size));
1090 } 1089 }
1091 1090
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_activex_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698