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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien
t) | 554 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien
t) |
555 { | 555 { |
556 m_permissionClient = permissionClient; | 556 m_permissionClient = permissionClient; |
557 } | 557 } |
558 | 558 |
559 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor
yClient* client) | 559 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor
yClient* client) |
560 { | 560 { |
561 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl
ient); | 561 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl
ient); |
562 } | 562 } |
563 | 563 |
| 564 void WebLocalFrameImpl::setAccessibilityEnabled(bool enabled) |
| 565 { |
| 566 if (!frame()) |
| 567 return; |
| 568 if (!frame()->settings()) |
| 569 return; |
| 570 frame()->settings()->setAccessibilityEnabled(enabled); |
| 571 } |
| 572 |
| 573 void WebLocalFrameImpl::setInlineTextBoxAccessibilityEnabled(bool enabled) |
| 574 { |
| 575 if (!frame()) |
| 576 return; |
| 577 if (!frame()->settings()) |
| 578 return; |
| 579 frame()->settings()->setInlineTextBoxAccessibilityEnabled(enabled); |
| 580 } |
| 581 |
564 WebSize WebLocalFrameImpl::scrollOffset() const | 582 WebSize WebLocalFrameImpl::scrollOffset() const |
565 { | 583 { |
566 FrameView* view = frameView(); | 584 FrameView* view = frameView(); |
567 if (!view) | 585 if (!view) |
568 return WebSize(); | 586 return WebSize(); |
569 return view->scrollOffset(); | 587 return view->scrollOffset(); |
570 } | 588 } |
571 | 589 |
572 WebSize WebLocalFrameImpl::minimumScrollOffset() const | 590 WebSize WebLocalFrameImpl::minimumScrollOffset() const |
573 { | 591 { |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 | 1888 |
1871 void WebLocalFrameImpl::invalidateAll() const | 1889 void WebLocalFrameImpl::invalidateAll() const |
1872 { | 1890 { |
1873 ASSERT(frame() && frame()->view()); | 1891 ASSERT(frame() && frame()->view()); |
1874 FrameView* view = frame()->view(); | 1892 FrameView* view = frame()->view(); |
1875 view->invalidateRect(view->frameRect()); | 1893 view->invalidateRect(view->frameRect()); |
1876 invalidateScrollbar(); | 1894 invalidateScrollbar(); |
1877 } | 1895 } |
1878 | 1896 |
1879 } // namespace blink | 1897 } // namespace blink |
OLD | NEW |