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

Side by Side Diff: chrome/common/extensions/extension_messages.h

Issue 10822004: Draggable region support for frameless app window on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 4 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for extensions. 5 // IPC messages for extensions.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/extensions/draggable_region.h"
10 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/permissions/permission_set.h" 12 #include "chrome/common/extensions/permissions/permission_set.h"
12 #include "chrome/common/extensions/url_pattern.h" 13 #include "chrome/common/extensions/url_pattern.h"
13 #include "chrome/common/extensions/url_pattern_set.h" 14 #include "chrome/common/extensions/url_pattern_set.h"
14 #include "chrome/common/view_type.h" 15 #include "chrome/common/view_type.h"
15 #include "chrome/common/web_apps.h" 16 #include "chrome/common/web_apps.h"
16 #include "content/public/common/common_param_traits.h" 17 #include "content/public/common/common_param_traits.h"
17 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
18 19
19 #define IPC_MESSAGE_START ExtensionMsgStart 20 #define IPC_MESSAGE_START ExtensionMsgStart
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) 89 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo)
89 IPC_STRUCT_TRAITS_MEMBER(title) 90 IPC_STRUCT_TRAITS_MEMBER(title)
90 IPC_STRUCT_TRAITS_MEMBER(description) 91 IPC_STRUCT_TRAITS_MEMBER(description)
91 IPC_STRUCT_TRAITS_MEMBER(app_url) 92 IPC_STRUCT_TRAITS_MEMBER(app_url)
92 IPC_STRUCT_TRAITS_MEMBER(icons) 93 IPC_STRUCT_TRAITS_MEMBER(icons)
93 IPC_STRUCT_TRAITS_MEMBER(permissions) 94 IPC_STRUCT_TRAITS_MEMBER(permissions)
94 IPC_STRUCT_TRAITS_MEMBER(launch_container) 95 IPC_STRUCT_TRAITS_MEMBER(launch_container)
95 IPC_STRUCT_TRAITS_MEMBER(is_offline_enabled) 96 IPC_STRUCT_TRAITS_MEMBER(is_offline_enabled)
96 IPC_STRUCT_TRAITS_END() 97 IPC_STRUCT_TRAITS_END()
97 98
99 IPC_STRUCT_TRAITS_BEGIN(extensions::DraggableRegion)
100 IPC_STRUCT_TRAITS_MEMBER(label)
101 IPC_STRUCT_TRAITS_MEMBER(bounds)
102 IPC_STRUCT_TRAITS_MEMBER(clip)
103 IPC_STRUCT_TRAITS_END()
104
98 // Singly-included section for custom IPC traits. 105 // Singly-included section for custom IPC traits.
99 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ 106 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_
100 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ 107 #define CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_
101 108
102 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need 109 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
103 // to typedef it to avoid that. 110 // to typedef it to avoid that.
104 // Substitution map for l10n messages. 111 // Substitution map for l10n messages.
105 typedef std::map<std::string, std::string> SubstitutionMap; 112 typedef std::map<std::string, std::string> SubstitutionMap;
106 113
107 struct ExtensionMsg_Loaded_Params { 114 struct ExtensionMsg_Loaded_Params {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // alive. 503 // alive.
497 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 504 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
498 505
499 // Fetches a globally unique ID (for the lifetime of the browser) from the 506 // Fetches a globally unique ID (for the lifetime of the browser) from the
500 // browser process. 507 // browser process.
501 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 508 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
502 int /* unique_id */) 509 int /* unique_id */)
503 510
504 // Resumes resource requests for a newly created app window. 511 // Resumes resource requests for a newly created app window.
505 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 512 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
513
514 // Sent by the renderer when the draggable regions are updated.
515 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
516 std::vector<extensions::DraggableRegion> /* regions */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698