Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: webkit/glue/webview_impl.cc

Issue 246079: More WebView / WebViewDelegate cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webview_impl.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 HitTestResult result = 1598 HitTestResult result =
1599 HitTestResultForWindowPos(webkit_glue::WebPointToIntPoint(point)); 1599 HitTestResultForWindowPos(webkit_glue::WebPointToIntPoint(point));
1600 1600
1601 if (!result.innerNonSharedNode()) 1601 if (!result.innerNonSharedNode())
1602 return; 1602 return;
1603 1603
1604 page_->inspectorController()->inspect(result.innerNonSharedNode()); 1604 page_->inspectorController()->inspect(result.innerNonSharedNode());
1605 } 1605 }
1606 } 1606 }
1607 1607
1608 WebString WebViewImpl::inspectorSettings() const {
1609 return inspector_settings_;
1610 }
1611
1612 void WebViewImpl::setInspectorSettings(const WebString& settings) {
1613 inspector_settings_ = settings;
1614 }
1615
1608 // WebView -------------------------------------------------------------------- 1616 // WebView --------------------------------------------------------------------
1609 1617
1610 WebViewDelegate* WebViewImpl::GetDelegate() { 1618 WebViewDelegate* WebViewImpl::GetDelegate() {
1611 return delegate_; 1619 return delegate_;
1612 } 1620 }
1613 1621
1614 const std::wstring& WebViewImpl::GetInspectorSettings() const {
1615 return inspector_settings_;
1616 }
1617
1618 void WebViewImpl::SetInspectorSettings(const std::wstring& settings) {
1619 inspector_settings_ = settings;
1620 }
1621
1622 bool WebViewImpl::setDropEffect(bool accept) { 1622 bool WebViewImpl::setDropEffect(bool accept) {
1623 if (drag_target_dispatch_) { 1623 if (drag_target_dispatch_) {
1624 drop_effect_ = accept ? DROP_EFFECT_COPY : DROP_EFFECT_NONE; 1624 drop_effect_ = accept ? DROP_EFFECT_COPY : DROP_EFFECT_NONE;
1625 return true; 1625 return true;
1626 } else { 1626 } else {
1627 return false; 1627 return false;
1628 } 1628 }
1629 } 1629 }
1630 1630
1631 void WebViewImpl::AutofillSuggestionsForNode( 1631 void WebViewImpl::AutofillSuggestionsForNode(
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 return document->focusedNode(); 1888 return document->focusedNode();
1889 } 1889 }
1890 1890
1891 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { 1891 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) {
1892 IntPoint doc_point( 1892 IntPoint doc_point(
1893 page_->mainFrame()->view()->windowToContents(pos)); 1893 page_->mainFrame()->view()->windowToContents(pos));
1894 return page_->mainFrame()->eventHandler()-> 1894 return page_->mainFrame()->eventHandler()->
1895 hitTestResultAtPoint(doc_point, false); 1895 hitTestResultAtPoint(doc_point, false);
1896 } 1896 }
1897 1897
1898 void WebViewImpl::SetSpellingPanelVisibility(bool is_visible) {
1899 spelling_panel_is_visible_ = is_visible;
1900 }
1901
1902 bool WebViewImpl::GetSpellingPanelVisibility() {
1903 return spelling_panel_is_visible_;
1904 }
1905
1906 void WebViewImpl::setTabsToLinks(bool enable) { 1898 void WebViewImpl::setTabsToLinks(bool enable) {
1907 tabs_to_links_ = enable; 1899 tabs_to_links_ = enable;
1908 } 1900 }
1909 1901
1910 bool WebViewImpl::tabsToLinks() const { 1902 bool WebViewImpl::tabsToLinks() const {
1911 return tabs_to_links_; 1903 return tabs_to_links_;
1912 } 1904 }
OLDNEW
« no previous file with comments | « webkit/glue/webview_impl.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698