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

Side by Side Diff: chrome/renderer/renderer_glue.cc

Issue 18768: POSIX: gfx::NativeViewId and CrossProcessEvent (Closed)
Patch Set: Addressing Brett's comments Created 11 years, 11 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
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <wininet.h> 9 #include <wininet.h>
10 #endif 10 #endif
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 #if defined(OS_WIN) 256 #if defined(OS_WIN)
257 bool EnsureFontLoaded(HFONT font) { 257 bool EnsureFontLoaded(HFONT font) {
258 LOGFONT logfont; 258 LOGFONT logfont;
259 GetObject(font, sizeof(LOGFONT), &logfont); 259 GetObject(font, sizeof(LOGFONT), &logfont);
260 return g_render_thread->Send(new ViewHostMsg_LoadFont(logfont)); 260 return g_render_thread->Send(new ViewHostMsg_LoadFont(logfont));
261 } 261 }
262 #endif 262 #endif
263 263
264 webkit_glue::ScreenInfo GetScreenInfo(gfx::NativeView window) { 264 webkit_glue::ScreenInfo GetScreenInfo(gfx::NativeViewId window) {
265 webkit_glue::ScreenInfo results; 265 webkit_glue::ScreenInfo results;
266 #if defined(OS_WIN)
267 g_render_thread->Send( 266 g_render_thread->Send(
268 new ViewHostMsg_GetScreenInfo(window, &results)); 267 new ViewHostMsg_GetScreenInfo(window, &results));
269 #else
270 // TODO(agl): this will start working on GetScreenInfo is fixed
271 NOTIMPLEMENTED();
272 #endif
273 return results; 268 return results;
274 } 269 }
275 270
276 uint64 VisitedLinkHash(const char* canonical_url, size_t length) { 271 uint64 VisitedLinkHash(const char* canonical_url, size_t length) {
277 return g_render_thread->visited_link_slave()->ComputeURLFingerprint( 272 return g_render_thread->visited_link_slave()->ComputeURLFingerprint(
278 canonical_url, length); 273 canonical_url, length);
279 } 274 }
280 275
281 bool IsLinkVisited(uint64 link_hash) { 276 bool IsLinkVisited(uint64 link_hash) {
282 return g_render_thread->visited_link_slave()->IsVisited(link_hash); 277 return g_render_thread->visited_link_slave()->IsVisited(link_hash);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // NOTE: Since this can be called from the plugin process, we might not have 335 // NOTE: Since this can be called from the plugin process, we might not have
341 // a RenderThread. Do nothing in that case. 336 // a RenderThread. Do nothing in that case.
342 if (g_render_thread) 337 if (g_render_thread)
343 g_render_thread->InformHostOfCacheStatsLater(); 338 g_render_thread->InformHostOfCacheStatsLater();
344 } 339 }
345 340
346 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE 341 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE
347 342
348 } // namespace webkit_glue 343 } // namespace webkit_glue
349 344
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698