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_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/surface/transport_dib.h" | 12 #include "app/surface/transport_dib.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/file_util_proxy.h" | 14 #include "base/file_util_proxy.h" |
15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/common/dom_storage_common.h" | 19 #include "chrome/common/dom_storage_common.h" |
20 #include "chrome/common/extensions/extension.h" | 20 #include "chrome/common/extensions/extension.h" |
21 #include "chrome/common/extensions/extension_extent.h" | 21 #include "chrome/common/extensions/extension_extent.h" |
22 #include "chrome/common/extensions/url_pattern.h" | 22 #include "chrome/common/extensions/url_pattern.h" |
23 #include "chrome/common/indexed_db_key.h" | 23 #include "chrome/common/indexed_db_key.h" |
24 #include "chrome/common/navigation_gesture.h" | 24 #include "chrome/common/navigation_gesture.h" |
25 #include "chrome/common/navigation_types.h" | 25 #include "chrome/common/navigation_types.h" |
26 #include "chrome/common/page_transition_types.h" | 26 #include "chrome/common/page_transition_types.h" |
27 #include "chrome/common/renderer_preferences.h" | 27 #include "chrome/common/renderer_preferences.h" |
28 #include "chrome/common/serialized_script_value.h" | 28 #include "chrome/common/serialized_script_value.h" |
29 #include "chrome/common/window_container_type.h" | 29 #include "chrome/common/window_container_type.h" |
| 30 #include "gfx/rect.h" |
| 31 #include "gfx/size.h" |
30 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
31 #include "ipc/ipc_param_traits.h" | 33 #include "ipc/ipc_param_traits.h" |
32 #include "media/audio/audio_parameters.h" | 34 #include "media/audio/audio_parameters.h" |
33 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 35 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
34 #include "webkit/glue/password_form.h" | 36 #include "webkit/glue/password_form.h" |
35 #include "webkit/glue/plugins/webplugin.h" | 37 #include "webkit/glue/plugins/webplugin.h" |
36 #include "webkit/glue/resource_type.h" | 38 #include "webkit/glue/resource_type.h" |
37 #include "webkit/glue/webaccessibility.h" | 39 #include "webkit/glue/webaccessibility.h" |
38 #include "webkit/glue/webmenuitem.h" | 40 #include "webkit/glue/webmenuitem.h" |
39 #include "webkit/glue/webpreferences.h" | 41 #include "webkit/glue/webpreferences.h" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 // The regions of the bitmap (in view coords) that contain updated pixels. | 342 // The regions of the bitmap (in view coords) that contain updated pixels. |
341 // In the case of scrolling, this includes the scroll damage rect. | 343 // In the case of scrolling, this includes the scroll damage rect. |
342 std::vector<gfx::Rect> copy_rects; | 344 std::vector<gfx::Rect> copy_rects; |
343 | 345 |
344 // The size of the RenderView when this message was generated. This is | 346 // The size of the RenderView when this message was generated. This is |
345 // included so the host knows how large the view is from the perspective of | 347 // included so the host knows how large the view is from the perspective of |
346 // the renderer process. This is necessary in case a resize operation is in | 348 // the renderer process. This is necessary in case a resize operation is in |
347 // progress. | 349 // progress. |
348 gfx::Size view_size; | 350 gfx::Size view_size; |
349 | 351 |
| 352 // The area of the RenderView reserved for resize corner when this message |
| 353 // was generated. Reported for the same reason as view_size is. |
| 354 gfx::Rect resizer_rect; |
| 355 |
350 // New window locations for plugin child windows. | 356 // New window locations for plugin child windows. |
351 std::vector<webkit_glue::WebPluginGeometry> plugin_window_moves; | 357 std::vector<webkit_glue::WebPluginGeometry> plugin_window_moves; |
352 | 358 |
353 // The following describes the various bits that may be set in flags: | 359 // The following describes the various bits that may be set in flags: |
354 // | 360 // |
355 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK | 361 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK |
356 // Indicates that this is a response to a ViewMsg_Resize message. | 362 // Indicates that this is a response to a ViewMsg_Resize message. |
357 // | 363 // |
358 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK | 364 // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK |
359 // Indicates that this is a response to a ViewMsg_WasRestored message. | 365 // Indicates that this is a response to a ViewMsg_WasRestored message. |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1328 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1323 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1329 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1324 static void Write(Message* m, const param_type& p); | 1330 static void Write(Message* m, const param_type& p); |
1325 static bool Read(const Message* m, void** iter, param_type* p); | 1331 static bool Read(const Message* m, void** iter, param_type* p); |
1326 static void Log(const param_type& p, std::string* l); | 1332 static void Log(const param_type& p, std::string* l); |
1327 }; | 1333 }; |
1328 | 1334 |
1329 } // namespace IPC | 1335 } // namespace IPC |
1330 | 1336 |
1331 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1337 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |