| 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien
t) | 556 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien
t) |
| 557 { | 557 { |
| 558 m_permissionClient = permissionClient; | 558 m_permissionClient = permissionClient; |
| 559 } | 559 } |
| 560 | 560 |
| 561 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor
yClient* client) | 561 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor
yClient* client) |
| 562 { | 562 { |
| 563 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl
ient); | 563 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl
ient); |
| 564 } | 564 } |
| 565 | 565 |
| 566 WebColor WebLocalFrameImpl::brandColor() const |
| 567 { |
| 568 return frame()->document()->brandColor().rgb(); |
| 569 } |
| 570 |
| 566 WebSize WebLocalFrameImpl::scrollOffset() const | 571 WebSize WebLocalFrameImpl::scrollOffset() const |
| 567 { | 572 { |
| 568 FrameView* view = frameView(); | 573 FrameView* view = frameView(); |
| 569 if (!view) | 574 if (!view) |
| 570 return WebSize(); | 575 return WebSize(); |
| 571 return view->scrollOffset(); | 576 return view->scrollOffset(); |
| 572 } | 577 } |
| 573 | 578 |
| 574 WebSize WebLocalFrameImpl::minimumScrollOffset() const | 579 WebSize WebLocalFrameImpl::minimumScrollOffset() const |
| 575 { | 580 { |
| (...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 | 1927 |
| 1923 void WebLocalFrameImpl::invalidateAll() const | 1928 void WebLocalFrameImpl::invalidateAll() const |
| 1924 { | 1929 { |
| 1925 ASSERT(frame() && frame()->view()); | 1930 ASSERT(frame() && frame()->view()); |
| 1926 FrameView* view = frame()->view(); | 1931 FrameView* view = frame()->view(); |
| 1927 view->invalidateRect(view->frameRect()); | 1932 view->invalidateRect(view->frameRect()); |
| 1928 invalidateScrollbar(); | 1933 invalidateScrollbar(); |
| 1929 } | 1934 } |
| 1930 | 1935 |
| 1931 } // namespace blink | 1936 } // namespace blink |
| OLD | NEW |