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

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

Issue 2873074: Add a command line switch to control accelerated 2d canvas (Closed)
Patch Set: Serialize the preference over IPC so the renderer can see it Created 10 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
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 WriteParam(m, p.application_cache_enabled); 2042 WriteParam(m, p.application_cache_enabled);
2043 WriteParam(m, p.tabs_to_links); 2043 WriteParam(m, p.tabs_to_links);
2044 WriteParam(m, p.user_style_sheet_enabled); 2044 WriteParam(m, p.user_style_sheet_enabled);
2045 WriteParam(m, p.user_style_sheet_location); 2045 WriteParam(m, p.user_style_sheet_location);
2046 WriteParam(m, p.author_and_user_styles_enabled); 2046 WriteParam(m, p.author_and_user_styles_enabled);
2047 WriteParam(m, p.allow_universal_access_from_file_urls); 2047 WriteParam(m, p.allow_universal_access_from_file_urls);
2048 WriteParam(m, p.allow_file_access_from_file_urls); 2048 WriteParam(m, p.allow_file_access_from_file_urls);
2049 WriteParam(m, p.experimental_webgl_enabled); 2049 WriteParam(m, p.experimental_webgl_enabled);
2050 WriteParam(m, p.show_composited_layer_borders); 2050 WriteParam(m, p.show_composited_layer_borders);
2051 WriteParam(m, p.accelerated_compositing_enabled); 2051 WriteParam(m, p.accelerated_compositing_enabled);
2052 WriteParam(m, p.accelerated_2d_canvas_enabled);
2052 WriteParam(m, p.memory_info_enabled); 2053 WriteParam(m, p.memory_info_enabled);
2053 } 2054 }
2054 static bool Read(const Message* m, void** iter, param_type* p) { 2055 static bool Read(const Message* m, void** iter, param_type* p) {
2055 return 2056 return
2056 ReadParam(m, iter, &p->standard_font_family) && 2057 ReadParam(m, iter, &p->standard_font_family) &&
2057 ReadParam(m, iter, &p->fixed_font_family) && 2058 ReadParam(m, iter, &p->fixed_font_family) &&
2058 ReadParam(m, iter, &p->serif_font_family) && 2059 ReadParam(m, iter, &p->serif_font_family) &&
2059 ReadParam(m, iter, &p->sans_serif_font_family) && 2060 ReadParam(m, iter, &p->sans_serif_font_family) &&
2060 ReadParam(m, iter, &p->cursive_font_family) && 2061 ReadParam(m, iter, &p->cursive_font_family) &&
2061 ReadParam(m, iter, &p->fantasy_font_family) && 2062 ReadParam(m, iter, &p->fantasy_font_family) &&
(...skipping 25 matching lines...) Expand all
2087 ReadParam(m, iter, &p->application_cache_enabled) && 2088 ReadParam(m, iter, &p->application_cache_enabled) &&
2088 ReadParam(m, iter, &p->tabs_to_links) && 2089 ReadParam(m, iter, &p->tabs_to_links) &&
2089 ReadParam(m, iter, &p->user_style_sheet_enabled) && 2090 ReadParam(m, iter, &p->user_style_sheet_enabled) &&
2090 ReadParam(m, iter, &p->user_style_sheet_location) && 2091 ReadParam(m, iter, &p->user_style_sheet_location) &&
2091 ReadParam(m, iter, &p->author_and_user_styles_enabled) && 2092 ReadParam(m, iter, &p->author_and_user_styles_enabled) &&
2092 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && 2093 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) &&
2093 ReadParam(m, iter, &p->allow_file_access_from_file_urls) && 2094 ReadParam(m, iter, &p->allow_file_access_from_file_urls) &&
2094 ReadParam(m, iter, &p->experimental_webgl_enabled) && 2095 ReadParam(m, iter, &p->experimental_webgl_enabled) &&
2095 ReadParam(m, iter, &p->show_composited_layer_borders) && 2096 ReadParam(m, iter, &p->show_composited_layer_borders) &&
2096 ReadParam(m, iter, &p->accelerated_compositing_enabled) && 2097 ReadParam(m, iter, &p->accelerated_compositing_enabled) &&
2098 ReadParam(m, iter, &p->accelerated_2d_canvas_enabled) &&
2097 ReadParam(m, iter, &p->memory_info_enabled); 2099 ReadParam(m, iter, &p->memory_info_enabled);
2098 } 2100 }
2099 static void Log(const param_type& p, std::wstring* l) { 2101 static void Log(const param_type& p, std::wstring* l) {
2100 l->append(L"<WebPreferences>"); 2102 l->append(L"<WebPreferences>");
2101 } 2103 }
2102 }; 2104 };
2103 2105
2104 // Traits for WebDropData 2106 // Traits for WebDropData
2105 template <> 2107 template <>
2106 struct ParamTraits<WebDropData> { 2108 struct ParamTraits<WebDropData> {
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 l->append(L")"); 3304 l->append(L")");
3303 } 3305 }
3304 }; 3306 };
3305 3307
3306 } // namespace IPC 3308 } // namespace IPC
3307 3309
3308 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 3310 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
3309 #include "ipc/ipc_message_macros.h" 3311 #include "ipc/ipc_message_macros.h"
3310 3312
3311 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 3313 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698