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

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

Issue 39252: A tricky fix for Issue 1845.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 20 matching lines...) Expand all
31 #include "webkit/glue/feed.h" 31 #include "webkit/glue/feed.h"
32 #include "webkit/glue/form_data.h" 32 #include "webkit/glue/form_data.h"
33 #include "webkit/glue/password_form.h" 33 #include "webkit/glue/password_form.h"
34 #include "webkit/glue/password_form_dom_manager.h" 34 #include "webkit/glue/password_form_dom_manager.h"
35 #include "webkit/glue/resource_loader_bridge.h" 35 #include "webkit/glue/resource_loader_bridge.h"
36 #include "webkit/glue/screen_info.h" 36 #include "webkit/glue/screen_info.h"
37 #include "webkit/glue/webdropdata.h" 37 #include "webkit/glue/webdropdata.h"
38 #include "webkit/glue/webinputevent.h" 38 #include "webkit/glue/webinputevent.h"
39 #include "webkit/glue/webplugin.h" 39 #include "webkit/glue/webplugin.h"
40 #include "webkit/glue/webpreferences.h" 40 #include "webkit/glue/webpreferences.h"
41 #include "webkit/glue/webtextdirection.h"
41 #include "webkit/glue/webview_delegate.h" 42 #include "webkit/glue/webview_delegate.h"
42 43
43 #if defined(OS_POSIX) 44 #if defined(OS_POSIX)
44 #include "skia/include/SkBitmap.h" 45 #include "skia/include/SkBitmap.h"
45 #endif 46 #endif
46 47
47 struct ViewHostMsg_UpdateFeedList_Params { 48 struct ViewHostMsg_UpdateFeedList_Params {
48 // The page_id for this navigation, or -1 if it is a new navigation. Back, 49 // The page_id for this navigation, or -1 if it is a new navigation. Back,
49 // Forward, and Reload navigations should have a valid page_id. If the load 50 // Forward, and Reload navigations should have a valid page_id. If the load
50 // succeeds, then this page_id will be reflected in the resulting 51 // succeeds, then this page_id will be reflected in the resulting
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 break; 1827 break;
1827 default: 1828 default:
1828 state = L"UNKNOWN"; 1829 state = L"UNKNOWN";
1829 break; 1830 break;
1830 } 1831 }
1831 1832
1832 LogParam(state, l); 1833 LogParam(state, l);
1833 } 1834 }
1834 }; 1835 };
1835 1836
1837 template <>
1838 struct ParamTraits<WebTextDirection> {
1839 typedef WebTextDirection param_type;
1840 static void Write(Message* m, const param_type& p) {
1841 m->WriteInt(p);
1842 }
1843 static bool Read(const Message* m, void** iter, param_type* p) {
1844 int type;
1845 if (!m->ReadInt(iter, &type))
1846 return false;
1847 *p = static_cast<WebTextDirection>(type);
1848 return true;
1849 }
1850 static void Log(const param_type& p, std::wstring* l) {
1851 std::wstring control;
1852 switch (p) {
1853 case WEB_TEXT_DIRECTION_DEFAULT:
1854 control = L"WEB_TEXT_DIRECTION_DEFAULT";
1855 break;
1856 case WEB_TEXT_DIRECTION_RTL:
1857 control = L"WEB_TEXT_DIRECTION_RTL";
1858 break;
1859 case WEB_TEXT_DIRECTION_LTR:
1860 control = L"WEB_TEXT_DIRECTION_LTR";
1861 break;
1862 default:
1863 control = L"UNKNOWN";
1864 break;
1865 }
1866
1867 LogParam(control, l);
1868 }
1869 };
1836 1870
1837 } // namespace IPC 1871 } // namespace IPC
1838 1872
1839 1873
1840 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1874 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1841 #include "chrome/common/ipc_message_macros.h" 1875 #include "chrome/common/ipc_message_macros.h"
1842 1876
1843 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1877 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698