OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3587 return GetPage() ? GetPage()->GetFocusController().IsActive() : false; | 3587 return GetPage() ? GetPage()->GetFocusController().IsActive() : false; |
3588 } | 3588 } |
3589 | 3589 |
3590 void WebViewImpl::SetDomainRelaxationForbidden(bool forbidden, | 3590 void WebViewImpl::SetDomainRelaxationForbidden(bool forbidden, |
3591 const WebString& scheme) { | 3591 const WebString& scheme) { |
3592 SchemeRegistry::SetDomainRelaxationForbiddenForURLScheme(forbidden, | 3592 SchemeRegistry::SetDomainRelaxationForbiddenForURLScheme(forbidden, |
3593 String(scheme)); | 3593 String(scheme)); |
3594 } | 3594 } |
3595 | 3595 |
3596 void WebViewImpl::SetWindowFeatures(const WebWindowFeatures& features) { | 3596 void WebViewImpl::SetWindowFeatures(const WebWindowFeatures& features) { |
3597 page_->GetChromeClient().SetWindowFeatures(features); | 3597 page_->SetWindowFeatures(features); |
3598 } | 3598 } |
3599 | 3599 |
3600 void WebViewImpl::SetOpenedByDOM() { | 3600 void WebViewImpl::SetOpenedByDOM() { |
3601 page_->SetOpenedByDOM(); | 3601 page_->SetOpenedByDOM(); |
3602 } | 3602 } |
3603 | 3603 |
3604 void WebViewImpl::SetSelectionColors(unsigned active_background_color, | 3604 void WebViewImpl::SetSelectionColors(unsigned active_background_color, |
3605 unsigned active_foreground_color, | 3605 unsigned active_foreground_color, |
3606 unsigned inactive_background_color, | 3606 unsigned inactive_background_color, |
3607 unsigned inactive_foreground_color) { | 3607 unsigned inactive_foreground_color) { |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4148 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4148 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
4149 return nullptr; | 4149 return nullptr; |
4150 return focused_frame; | 4150 return focused_frame; |
4151 } | 4151 } |
4152 | 4152 |
4153 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4153 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
4154 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4154 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
4155 } | 4155 } |
4156 | 4156 |
4157 } // namespace blink | 4157 } // namespace blink |
OLD | NEW |