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 27 matching lines...) Expand all Loading... |
38 #include "Pasteboard.h" | 38 #include "Pasteboard.h" |
39 #include "PlatformContextSkia.h" | 39 #include "PlatformContextSkia.h" |
40 #include "PlatformKeyboardEvent.h" | 40 #include "PlatformKeyboardEvent.h" |
41 #include "PlatformMouseEvent.h" | 41 #include "PlatformMouseEvent.h" |
42 #include "PlatformWheelEvent.h" | 42 #include "PlatformWheelEvent.h" |
43 #include "PluginInfoStore.h" | 43 #include "PluginInfoStore.h" |
44 #include "PopupMenuChromium.h" | 44 #include "PopupMenuChromium.h" |
45 #include "PopupMenuClient.h" | 45 #include "PopupMenuClient.h" |
46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
47 #include "RenderThemeChromiumWin.h" | 47 #include "RenderThemeChromiumWin.h" |
| 48 #elif defined(OS_LINUX) |
| 49 #include "RenderThemeChromiumLinux.h" |
48 #else | 50 #else |
49 #include "RenderTheme.h" | 51 #include "RenderTheme.h" |
50 #endif | 52 #endif |
51 #include "RenderView.h" | 53 #include "RenderView.h" |
52 #include "ResourceHandle.h" | 54 #include "ResourceHandle.h" |
53 #include "SelectionController.h" | 55 #include "SelectionController.h" |
54 #include "Settings.h" | 56 #include "Settings.h" |
55 #include "TypingCommand.h" | 57 #include "TypingCommand.h" |
56 MSVC_POP_WARNING(); | 58 MSVC_POP_WARNING(); |
57 #undef LOG | 59 #undef LOG |
(...skipping 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 if (page() && page()->focusController()) | 1799 if (page() && page()->focusController()) |
1798 page()->focusController()->setActive(active); | 1800 page()->focusController()->setActive(active); |
1799 } | 1801 } |
1800 | 1802 |
1801 bool WebViewImpl::IsActive() { | 1803 bool WebViewImpl::IsActive() { |
1802 return (page() && page()->focusController()) | 1804 return (page() && page()->focusController()) |
1803 ? page()->focusController()->isActive() | 1805 ? page()->focusController()->isActive() |
1804 : false; | 1806 : false; |
1805 } | 1807 } |
1806 | 1808 |
| 1809 #if defined(OS_LINUX) |
| 1810 void WebViewImpl::SetCaretBlinkInterval(double interval) { |
| 1811 reinterpret_cast<RenderThemeChromiumLinux*>(theme())-> |
| 1812 setCaretBlinkInterval(interval); |
| 1813 } |
| 1814 #endif |
| 1815 |
1807 void WebViewImpl::DidCommitLoad(bool* is_new_navigation) { | 1816 void WebViewImpl::DidCommitLoad(bool* is_new_navigation) { |
1808 if (is_new_navigation) | 1817 if (is_new_navigation) |
1809 *is_new_navigation = observed_new_navigation_; | 1818 *is_new_navigation = observed_new_navigation_; |
1810 | 1819 |
1811 #ifndef NDEBUG | 1820 #ifndef NDEBUG |
1812 DCHECK(!observed_new_navigation_ || | 1821 DCHECK(!observed_new_navigation_ || |
1813 page_->mainFrame()->loader()->documentLoader() == new_navigation_loader_); | 1822 page_->mainFrame()->loader()->documentLoader() == new_navigation_loader_); |
1814 new_navigation_loader_ = NULL; | 1823 new_navigation_loader_ = NULL; |
1815 #endif | 1824 #endif |
1816 observed_new_navigation_ = false; | 1825 observed_new_navigation_ = false; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1936 return spelling_panel_is_visible_; | 1945 return spelling_panel_is_visible_; |
1937 } | 1946 } |
1938 | 1947 |
1939 void WebViewImpl::SetTabsToLinks(bool enable) { | 1948 void WebViewImpl::SetTabsToLinks(bool enable) { |
1940 tabs_to_links_ = enable; | 1949 tabs_to_links_ = enable; |
1941 } | 1950 } |
1942 | 1951 |
1943 bool WebViewImpl::GetTabsToLinks() const { | 1952 bool WebViewImpl::GetTabsToLinks() const { |
1944 return tabs_to_links_; | 1953 return tabs_to_links_; |
1945 } | 1954 } |
OLD | NEW |