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_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 // Default file name to select in the dialog. | 650 // Default file name to select in the dialog. |
651 FilePath default_file_name; | 651 FilePath default_file_name; |
652 }; | 652 }; |
653 | 653 |
654 struct ViewMsg_ExtensionExtentsUpdated_Params { | 654 struct ViewMsg_ExtensionExtentsUpdated_Params { |
655 // A list of (extension_id, web_extent) pairs that describe the installed | 655 // A list of (extension_id, web_extent) pairs that describe the installed |
656 // extension apps and the URLs they cover. | 656 // extension apps and the URLs they cover. |
657 std::vector< std::pair<std::string, ExtensionExtent> > extension_apps; | 657 std::vector< std::pair<std::string, ExtensionExtent> > extension_apps; |
658 }; | 658 }; |
659 | 659 |
| 660 // Values that may be OR'd together to form the 'flags' parameter of the |
| 661 // ViewMsg_EnablePreferredSizeChangedMode message. |
| 662 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { |
| 663 kPreferredSizeNothing, |
| 664 kPreferredSizeWidth = 1 << 0, |
| 665 // Requesting the height currently requires a polling loop in render_view.cc. |
| 666 kPreferredSizeHeightThisIsSlow = 1 << 1, |
| 667 }; |
| 668 |
660 namespace IPC { | 669 namespace IPC { |
661 | 670 |
662 template <> | 671 template <> |
663 struct ParamTraits<ResourceType::Type> { | 672 struct ParamTraits<ResourceType::Type> { |
664 typedef ResourceType::Type param_type; | 673 typedef ResourceType::Type param_type; |
665 static void Write(Message* m, const param_type& p) { | 674 static void Write(Message* m, const param_type& p) { |
666 m->WriteInt(p); | 675 m->WriteInt(p); |
667 } | 676 } |
668 static bool Read(const Message* m, void** iter, param_type* p) { | 677 static bool Read(const Message* m, void** iter, param_type* p) { |
669 int type; | 678 int type; |
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2644 l->append(L")"); | 2653 l->append(L")"); |
2645 } | 2654 } |
2646 }; | 2655 }; |
2647 | 2656 |
2648 } // namespace IPC | 2657 } // namespace IPC |
2649 | 2658 |
2650 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2659 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2651 #include "ipc/ipc_message_macros.h" | 2660 #include "ipc/ipc_message_macros.h" |
2652 | 2661 |
2653 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2662 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |