OLD | NEW |
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_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ | 5 #ifndef CHROME_COMMON_AUTOMATION_MESSAGES_H__ |
6 #define CHROME_TEST_AUTOMATION_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" |
| 13 #include "chrome/common/common_param_traits.h" |
12 #include "chrome/browser/tab_contents/navigation_entry.h" | 14 #include "chrome/browser/tab_contents/navigation_entry.h" |
13 #include "chrome/browser/tab_contents/security_style.h" | 15 #include "chrome/browser/tab_contents/security_style.h" |
14 #include "chrome/common/common_param_traits.h" | |
15 #include "chrome/test/automation/automation_constants.h" | |
16 #include "gfx/rect.h" | 16 #include "gfx/rect.h" |
17 #include "net/base/upload_data.h" | 17 #include "net/base/upload_data.h" |
18 | 18 |
19 | |
20 struct AutomationMsg_Find_Params { | 19 struct AutomationMsg_Find_Params { |
21 // Unused value, which exists only for backwards compat. | 20 // Unused value, which exists only for backwards compat. |
22 int unused; | 21 int unused; |
23 | 22 |
24 // The word(s) to find on the page. | 23 // The word(s) to find on the page. |
25 string16 search_string; | 24 string16 search_string; |
26 | 25 |
27 // Whether to search forward or backward within the page. | 26 // Whether to search forward or backward within the page. |
28 bool forward; | 27 bool forward; |
29 | 28 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 GURL src_url; | 540 GURL src_url; |
542 | 541 |
543 // This is the URL of the top level page that the context menu was invoked | 542 // This is the URL of the top level page that the context menu was invoked |
544 // on. | 543 // on. |
545 GURL page_url; | 544 GURL page_url; |
546 | 545 |
547 // This is the URL of the subframe that the context menu was invoked on. | 546 // This is the URL of the subframe that the context menu was invoked on. |
548 GURL frame_url; | 547 GURL frame_url; |
549 }; | 548 }; |
550 | 549 |
551 // Traits for ContextMenuParams structure to pack/unpack. | 550 // Traits for MiniContextMenuParams structure to pack/unpack. |
552 template <> | 551 template <> |
553 struct ParamTraits<MiniContextMenuParams> { | 552 struct ParamTraits<MiniContextMenuParams> { |
554 typedef MiniContextMenuParams param_type; | 553 typedef MiniContextMenuParams param_type; |
555 static void Write(Message* m, const param_type& p) { | 554 static void Write(Message* m, const param_type& p) { |
556 WriteParam(m, p.screen_x); | 555 WriteParam(m, p.screen_x); |
557 WriteParam(m, p.screen_y); | 556 WriteParam(m, p.screen_y); |
558 WriteParam(m, p.link_url); | 557 WriteParam(m, p.link_url); |
559 WriteParam(m, p.unfiltered_link_url); | 558 WriteParam(m, p.unfiltered_link_url); |
560 WriteParam(m, p.src_url); | 559 WriteParam(m, p.src_url); |
561 WriteParam(m, p.page_url); | 560 WriteParam(m, p.page_url); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 LogParam(p.user_gesture, l); | 631 LogParam(p.user_gesture, l); |
633 l->append(","); | 632 l->append(","); |
634 LogParam(p.profile_name, l); | 633 LogParam(p.profile_name, l); |
635 l->append(")"); | 634 l->append(")"); |
636 } | 635 } |
637 }; | 636 }; |
638 | 637 |
639 } // namespace IPC | 638 } // namespace IPC |
640 | 639 |
641 #define MESSAGES_INTERNAL_FILE \ | 640 #define MESSAGES_INTERNAL_FILE \ |
642 "chrome/test/automation/automation_messages_internal.h" | 641 "chrome/common/automation_messages_internal.h" |
643 #include "ipc/ipc_message_macros.h" | 642 #include "ipc/ipc_message_macros.h" |
644 | 643 |
645 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_MESSAGES_H__ | 644 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H__ |
OLD | NEW |