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

Side by Side Diff: chrome/common/automation_messages.h

Issue 4697005: Part 3 of reapplying r64637. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prune dead files from gyp Created 10 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/common/DEPS ('k') | chrome/common/automation_messages_internal.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) 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 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H__ 5 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H__
6 #define CHROME_COMMON_AUTOMATION_MESSAGES_H__ 6 #define CHROME_COMMON_AUTOMATION_MESSAGES_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "chrome/common/automation_constants.h" 12 #include "chrome/common/automation_constants.h"
13 #include "chrome/common/common_param_traits.h" 13 #include "chrome/common/common_param_traits.h"
14 #include "chrome/browser/tab_contents/navigation_entry.h" 14 #include "chrome/common/page_type.h"
15 #include "chrome/browser/tab_contents/security_style.h" 15 #include "chrome/common/security_style.h"
16 #include "chrome/common/common_param_traits.h"
16 #include "gfx/rect.h" 17 #include "gfx/rect.h"
17 #include "net/base/upload_data.h" 18 #include "net/base/upload_data.h"
18 19
19 struct AutomationMsg_Find_Params { 20 struct AutomationMsg_Find_Params {
20 // Unused value, which exists only for backwards compat. 21 // Unused value, which exists only for backwards compat.
21 int unused; 22 int unused;
22 23
23 // The word(s) to find on the page. 24 // The word(s) to find on the page.
24 string16 search_string; 25 string16 search_string;
25 26
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 default: 192 default:
192 control = "UNKNOWN"; 193 control = "UNKNOWN";
193 break; 194 break;
194 } 195 }
195 196
196 LogParam(control, l); 197 LogParam(control, l);
197 } 198 }
198 }; 199 };
199 200
200 template <> 201 template <>
201 struct ParamTraits<NavigationEntry::PageType> { 202 struct ParamTraits<PageType> {
202 typedef NavigationEntry::PageType param_type; 203 typedef PageType param_type;
203 static void Write(Message* m, const param_type& p) { 204 static void Write(Message* m, const param_type& p) {
204 m->WriteInt(p); 205 m->WriteInt(p);
205 } 206 }
206 static bool Read(const Message* m, void** iter, param_type* p) { 207 static bool Read(const Message* m, void** iter, param_type* p) {
207 int type; 208 int type;
208 if (!m->ReadInt(iter, &type)) 209 if (!m->ReadInt(iter, &type))
209 return false; 210 return false;
210 *p = static_cast<NavigationEntry::PageType>(type); 211 *p = static_cast<PageType>(type);
211 return true; 212 return true;
212 } 213 }
213 static void Log(const param_type& p, std::string* l) { 214 static void Log(const param_type& p, std::string* l) {
214 std::string control; 215 std::string control;
215 switch (p) { 216 switch (p) {
216 case NavigationEntry::NORMAL_PAGE: 217 case NORMAL_PAGE:
217 control = "NORMAL_PAGE"; 218 control = "NORMAL_PAGE";
218 break; 219 break;
219 case NavigationEntry::ERROR_PAGE: 220 case ERROR_PAGE:
220 control = "ERROR_PAGE"; 221 control = "ERROR_PAGE";
221 break; 222 break;
222 case NavigationEntry::INTERSTITIAL_PAGE: 223 case INTERSTITIAL_PAGE:
223 control = "INTERSTITIAL_PAGE"; 224 control = "INTERSTITIAL_PAGE";
224 break; 225 break;
225 default: 226 default:
226 control = "UNKNOWN"; 227 control = "UNKNOWN";
227 break; 228 break;
228 } 229 }
229 230
230 LogParam(control, l); 231 LogParam(control, l);
231 } 232 }
232 }; 233 };
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 } 636 }
636 }; 637 };
637 638
638 } // namespace IPC 639 } // namespace IPC
639 640
640 #define MESSAGES_INTERNAL_FILE \ 641 #define MESSAGES_INTERNAL_FILE \
641 "chrome/common/automation_messages_internal.h" 642 "chrome/common/automation_messages_internal.h"
642 #include "ipc/ipc_message_macros.h" 643 #include "ipc/ipc_message_macros.h"
643 644
644 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__ 645 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__
OLDNEW
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/common/automation_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698