| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 return 0; // Invalid resolved URL. | 562 return 0; // Invalid resolved URL. |
| 563 | 563 |
| 564 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); | 564 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); |
| 565 } | 565 } |
| 566 | 566 |
| 567 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) | 567 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) |
| 568 { | 568 { |
| 569 return webKitClient()->isLinkVisited(visitedLinkHash); | 569 return webKitClient()->isLinkVisited(visitedLinkHash); |
| 570 } | 570 } |
| 571 | 571 |
| 572 // These are temporary methoeds that the WebKit layer can use to call to the | 572 // These are temporary methods that the WebKit layer can use to call to the |
| 573 // Glue layer. Once the Glue layer moves entirely into the WebKit layer, these | 573 // Glue layer. Once the Glue layer moves entirely into the WebKit layer, these |
| 574 // methods will be deleted. | 574 // methods will be deleted. |
| 575 | 575 |
| 576 String ChromiumBridge::uiResourceProtocol() | 576 String ChromiumBridge::uiResourceProtocol() |
| 577 { | 577 { |
| 578 return webKitClient()->uiResourceProtocol(); | 578 return webKitClient()->uiResourceProtocol(); |
| 579 } | 579 } |
| 580 | 580 |
| 581 void ChromiumBridge::notifyJSOutOfMemory(WebCore::Frame* frame) | 581 void ChromiumBridge::notifyJSOutOfMemory(WebCore::Frame* frame) |
| 582 { | 582 { |
| 583 return webKitClient()->notifyJSOutOfMemory(frame); | 583 return webKitClient()->notifyJSOutOfMemory(frame); |
| 584 } | 584 } |
| 585 | 585 |
| 586 int ChromiumBridge::memoryUsageMB() |
| 587 { |
| 588 return webKitClient()->memoryUsageMB(); |
| 589 } |
| 590 |
| 586 int ChromiumBridge::screenDepth(Widget* widget) | 591 int ChromiumBridge::screenDepth(Widget* widget) |
| 587 { | 592 { |
| 588 return webKitClient()->screenDepth(widget); | 593 return webKitClient()->screenDepth(widget); |
| 589 } | 594 } |
| 590 | 595 |
| 591 int ChromiumBridge::screenDepthPerComponent(Widget* widget) | 596 int ChromiumBridge::screenDepthPerComponent(Widget* widget) |
| 592 { | 597 { |
| 593 return webKitClient()->screenDepthPerComponent(widget); | 598 return webKitClient()->screenDepthPerComponent(widget); |
| 594 } | 599 } |
| 595 | 600 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 622 { | 627 { |
| 623 return webKitClient()->widgetSetFocus(widget); | 628 return webKitClient()->widgetSetFocus(widget); |
| 624 } | 629 } |
| 625 | 630 |
| 626 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) | 631 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) |
| 627 { | 632 { |
| 628 return webKitClient()->createWorkerContextProxy(worker); | 633 return webKitClient()->createWorkerContextProxy(worker); |
| 629 } | 634 } |
| 630 | 635 |
| 631 } // namespace WebCore | 636 } // namespace WebCore |
| OLD | NEW |