| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 WTF::initializeThreading(); | 403 WTF::initializeThreading(); |
| 404 | 404 |
| 405 // set to impossible point so we always get the first mouse pos | 405 // set to impossible point so we always get the first mouse pos |
| 406 last_mouse_position_ = WebPoint(-1, -1); | 406 last_mouse_position_ = WebPoint(-1, -1); |
| 407 | 407 |
| 408 // the page will take ownership of the various clients | 408 // the page will take ownership of the various clients |
| 409 page_.reset(new Page(&chrome_client_impl_, | 409 page_.reset(new Page(&chrome_client_impl_, |
| 410 &context_menu_client_impl_, | 410 &context_menu_client_impl_, |
| 411 &editor_client_impl_, | 411 &editor_client_impl_, |
| 412 &drag_client_impl_, | 412 &drag_client_impl_, |
| 413 &inspector_client_impl_)); | 413 &inspector_client_impl_, |
| 414 NULL)); |
| 414 | 415 |
| 415 page_->backForwardList()->setClient(&back_forward_list_client_impl_); | 416 page_->backForwardList()->setClient(&back_forward_list_client_impl_); |
| 416 page_->setGroupName(kPageGroupName); | 417 page_->setGroupName(kPageGroupName); |
| 417 } | 418 } |
| 418 | 419 |
| 419 WebViewImpl::~WebViewImpl() { | 420 WebViewImpl::~WebViewImpl() { |
| 420 DCHECK(page_ == NULL); | 421 DCHECK(page_ == NULL); |
| 421 for (std::set<ImageResourceFetcher*>::iterator i = image_fetchers_.begin(); | 422 for (std::set<ImageResourceFetcher*>::iterator i = image_fetchers_.begin(); |
| 422 i != image_fetchers_.end(); ++i) { | 423 i != image_fetchers_.end(); ++i) { |
| 423 delete *i; | 424 delete *i; |
| (...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 return spelling_panel_is_visible_; | 1935 return spelling_panel_is_visible_; |
| 1935 } | 1936 } |
| 1936 | 1937 |
| 1937 void WebViewImpl::SetTabsToLinks(bool enable) { | 1938 void WebViewImpl::SetTabsToLinks(bool enable) { |
| 1938 tabs_to_links_ = enable; | 1939 tabs_to_links_ = enable; |
| 1939 } | 1940 } |
| 1940 | 1941 |
| 1941 bool WebViewImpl::GetTabsToLinks() const { | 1942 bool WebViewImpl::GetTabsToLinks() const { |
| 1942 return tabs_to_links_; | 1943 return tabs_to_links_; |
| 1943 } | 1944 } |
| OLD | NEW |