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 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 | 1923 |
1924 return document->focusedNode(); | 1924 return document->focusedNode(); |
1925 } | 1925 } |
1926 | 1926 |
1927 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1927 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
1928 IntPoint doc_point( | 1928 IntPoint doc_point( |
1929 page_->mainFrame()->view()->windowToContents(pos)); | 1929 page_->mainFrame()->view()->windowToContents(pos)); |
1930 return page_->mainFrame()->eventHandler()-> | 1930 return page_->mainFrame()->eventHandler()-> |
1931 hitTestResultAtPoint(doc_point, false); | 1931 hitTestResultAtPoint(doc_point, false); |
1932 } | 1932 } |
| 1933 |
| 1934 void WebViewImpl::SetSpellingPanelVisibility(bool is_visible) { |
| 1935 spelling_panel_is_visible_ = is_visible; |
| 1936 } |
| 1937 |
| 1938 bool WebViewImpl::GetSpellingPanelVisibility() { |
| 1939 return spelling_panel_is_visible_; |
| 1940 } |
OLD | NEW |