| OLD | NEW |
| 1 // Copyright (c) 2007-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2007-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "CSSStyleSelector.h" | 10 #include "CSSStyleSelector.h" |
| (...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 WebString WebViewImpl::inspectorSettings() const { | 1651 WebString WebViewImpl::inspectorSettings() const { |
| 1652 return inspector_settings_; | 1652 return inspector_settings_; |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 void WebViewImpl::setInspectorSettings(const WebString& settings) { | 1655 void WebViewImpl::setInspectorSettings(const WebString& settings) { |
| 1656 inspector_settings_ = settings; | 1656 inspector_settings_ = settings; |
| 1657 } | 1657 } |
| 1658 | 1658 |
| 1659 // WebView -------------------------------------------------------------------- | 1659 // WebView -------------------------------------------------------------------- |
| 1660 | 1660 |
| 1661 WebViewDelegate* WebViewImpl::GetDelegate() { | |
| 1662 return delegate_; | |
| 1663 } | |
| 1664 | |
| 1665 bool WebViewImpl::setDropEffect(bool accept) { | 1661 bool WebViewImpl::setDropEffect(bool accept) { |
| 1666 if (drag_target_dispatch_) { | 1662 if (drag_target_dispatch_) { |
| 1667 drop_effect_ = accept ? DROP_EFFECT_COPY : DROP_EFFECT_NONE; | 1663 drop_effect_ = accept ? DROP_EFFECT_COPY : DROP_EFFECT_NONE; |
| 1668 return true; | 1664 return true; |
| 1669 } else { | 1665 } else { |
| 1670 return false; | 1666 return false; |
| 1671 } | 1667 } |
| 1672 } | 1668 } |
| 1673 | 1669 |
| 1674 void WebViewImpl::AutofillSuggestionsForNode( | 1670 void WebViewImpl::AutofillSuggestionsForNode( |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 hitTestResultAtPoint(doc_point, false); | 1903 hitTestResultAtPoint(doc_point, false); |
| 1908 } | 1904 } |
| 1909 | 1905 |
| 1910 void WebViewImpl::setTabsToLinks(bool enable) { | 1906 void WebViewImpl::setTabsToLinks(bool enable) { |
| 1911 tabs_to_links_ = enable; | 1907 tabs_to_links_ = enable; |
| 1912 } | 1908 } |
| 1913 | 1909 |
| 1914 bool WebViewImpl::tabsToLinks() const { | 1910 bool WebViewImpl::tabsToLinks() const { |
| 1915 return tabs_to_links_; | 1911 return tabs_to_links_; |
| 1916 } | 1912 } |
| OLD | NEW |