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

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

Issue 155133: Windowed plugins like Flash would cause the hung plugin dialog to show up whe... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // The height of each item in the menu. 390 // The height of each item in the menu.
391 int item_height; 391 int item_height;
392 392
393 // The currently selected (displayed) item in the menu. 393 // The currently selected (displayed) item in the menu.
394 int selected_item; 394 int selected_item;
395 395
396 // The entire list of items in the popup menu. 396 // The entire list of items in the popup menu.
397 std::vector<WebMenuItem> popup_items; 397 std::vector<WebMenuItem> popup_items;
398 }; 398 };
399 399
400 // Parameters for the IPC message ViewHostMsg_ScriptedPrint
401 struct ViewHostMsg_ScriptedPrint_Params {
402 int routing_id;
403 gfx::NativeViewId host_window_id;
404 int cookie;
405 int expected_pages_count;
406 bool has_selection;
407 };
408
400 namespace IPC { 409 namespace IPC {
401 410
402 template <> 411 template <>
403 struct ParamTraits<ResourceType::Type> { 412 struct ParamTraits<ResourceType::Type> {
404 typedef ResourceType::Type param_type; 413 typedef ResourceType::Type param_type;
405 static void Write(Message* m, const param_type& p) { 414 static void Write(Message* m, const param_type& p) {
406 m->WriteInt(p); 415 m->WriteInt(p);
407 } 416 }
408 static bool Read(const Message* m, void** iter, param_type* p) { 417 static bool Read(const Message* m, void** iter, param_type* p) {
409 int type; 418 int type;
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 l->append(L", "); 1915 l->append(L", ");
1907 LogParam(p.item_height, l); 1916 LogParam(p.item_height, l);
1908 l->append(L", "); 1917 l->append(L", ");
1909 LogParam(p.selected_item, l); 1918 LogParam(p.selected_item, l);
1910 l->append(L", "); 1919 l->append(L", ");
1911 LogParam(p.popup_items, l); 1920 LogParam(p.popup_items, l);
1912 l->append(L")"); 1921 l->append(L")");
1913 } 1922 }
1914 }; 1923 };
1915 1924
1925 // Traits for ViewHostMsg_ScriptedPrint_Params.
1926 template <>
1927 struct ParamTraits<ViewHostMsg_ScriptedPrint_Params> {
1928 typedef ViewHostMsg_ScriptedPrint_Params param_type;
1929 static void Write(Message* m, const param_type& p) {
1930 WriteParam(m, p.routing_id);
1931 WriteParam(m, p.host_window_id);
1932 WriteParam(m, p.cookie);
1933 WriteParam(m, p.expected_pages_count);
1934 WriteParam(m, p.has_selection);
1935 }
1936 static bool Read(const Message* m, void** iter, param_type* p) {
1937 return
1938 ReadParam(m, iter, &p->routing_id) &&
1939 ReadParam(m, iter, &p->host_window_id) &&
1940 ReadParam(m, iter, &p->cookie) &&
1941 ReadParam(m, iter, &p->expected_pages_count) &&
1942 ReadParam(m, iter, &p->has_selection);
1943 }
1944 static void Log(const param_type& p, std::wstring* l) {
1945 l->append(L"(");
1946 LogParam(p.routing_id, l);
1947 l->append(L", ");
1948 LogParam(p.host_window_id, l);
1949 l->append(L", ");
1950 LogParam(p.cookie, l);
1951 l->append(L", ");
1952 LogParam(p.expected_pages_count, l);
1953 l->append(L", ");
1954 LogParam(p.has_selection, l);
1955 l->append(L")");
1956 }
1957 };
1958
1959
1916 } // namespace IPC 1960 } // namespace IPC
1917 1961
1918 1962
1919 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1963 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1920 #include "chrome/common/ipc_message_macros.h" 1964 #include "chrome/common/ipc_message_macros.h"
1921 1965
1922 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1966 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698