OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 frame->view()->setCanHaveScrollbars(false); | 455 frame->view()->setCanHaveScrollbars(false); |
456 frame->view()->setTransparent(true); | 456 frame->view()->setTransparent(true); |
457 ASSERT(loader->activeDocumentLoader()); | 457 ASSERT(loader->activeDocumentLoader()); |
458 loader->activeDocumentLoader()->writer()->setMIMEType("text/html"); | 458 loader->activeDocumentLoader()->writer()->setMIMEType("text/html"); |
459 loader->activeDocumentLoader()->writer()->begin(); | 459 loader->activeDocumentLoader()->writer()->begin(); |
460 loader->activeDocumentLoader()->writer()->addData(reinterpret_cast<const cha
r*>(InspectorOverlayPage_html), sizeof(InspectorOverlayPage_html)); | 460 loader->activeDocumentLoader()->writer()->addData(reinterpret_cast<const cha
r*>(InspectorOverlayPage_html), sizeof(InspectorOverlayPage_html)); |
461 loader->activeDocumentLoader()->writer()->end(); | 461 loader->activeDocumentLoader()->writer()->end(); |
462 | 462 |
463 #if OS(WINDOWS) | 463 #if OS(WINDOWS) |
464 evaluateInOverlay("setPlatform", "windows"); | 464 evaluateInOverlay("setPlatform", "windows"); |
465 #elif OS(MAC_OS_X) | 465 #elif OS(DARWIN) |
466 evaluateInOverlay("setPlatform", "mac"); | 466 evaluateInOverlay("setPlatform", "mac"); |
467 #elif OS(UNIX) | 467 #elif OS(UNIX) |
468 evaluateInOverlay("setPlatform", "linux"); | 468 evaluateInOverlay("setPlatform", "linux"); |
469 #endif | 469 #endif |
470 | 470 |
471 return m_overlayPage.get(); | 471 return m_overlayPage.get(); |
472 } | 472 } |
473 | 473 |
474 void InspectorOverlay::reset(const IntSize& viewportSize, const IntSize& frameVi
ewFullSize) | 474 void InspectorOverlay::reset(const IntSize& viewportSize, const IntSize& frameVi
ewFullSize) |
475 { | 475 { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 info.addMember(m_size, "size"); | 512 info.addMember(m_size, "size"); |
513 } | 513 } |
514 | 514 |
515 void InspectorOverlay::freePage() | 515 void InspectorOverlay::freePage() |
516 { | 516 { |
517 m_overlayPage.clear(); | 517 m_overlayPage.clear(); |
518 } | 518 } |
519 | 519 |
520 } // namespace WebCore | 520 } // namespace WebCore |
521 | 521 |
OLD | NEW |