OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file contains the implementation of TestWebViewDelegate, which serves | 5 // This file contains the implementation of TestWebViewDelegate, which serves |
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to | 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to |
7 // have initialized a MessageLoop before these methods are called. | 7 // have initialized a MessageLoop before these methods are called. |
8 | 8 |
9 #include "webkit/tools/test_shell/test_webview_delegate.h" | 9 #include "webkit/tools/test_shell/test_webview_delegate.h" |
10 | 10 |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 | 968 |
969 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) | 969 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) |
970 : policy_delegate_enabled_(false), | 970 : policy_delegate_enabled_(false), |
971 policy_delegate_is_permissive_(false), | 971 policy_delegate_is_permissive_(false), |
972 policy_delegate_should_notify_done_(false), | 972 policy_delegate_should_notify_done_(false), |
973 shell_(shell), | 973 shell_(shell), |
974 top_loading_frame_(NULL), | 974 top_loading_frame_(NULL), |
975 page_id_(-1), | 975 page_id_(-1), |
976 last_page_id_updated_(-1), | 976 last_page_id_updated_(-1), |
977 using_fake_rect_(false), | 977 using_fake_rect_(false), |
978 #if defined(OS_LINUX) | 978 #if defined(TOOLKIT_USES_GTK) |
979 cursor_type_(GDK_X_CURSOR), | 979 cursor_type_(GDK_X_CURSOR), |
980 #endif | 980 #endif |
981 smart_insert_delete_enabled_(true), | 981 smart_insert_delete_enabled_(true), |
982 #if defined(OS_WIN) | 982 #if defined(OS_WIN) |
983 select_trailing_whitespace_enabled_(true), | 983 select_trailing_whitespace_enabled_(true), |
984 #else | 984 #else |
985 select_trailing_whitespace_enabled_(false), | 985 select_trailing_whitespace_enabled_(false), |
986 #endif | 986 #endif |
987 block_redirects_(false) { | 987 block_redirects_(false) { |
988 } | 988 } |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 } | 1157 } |
1158 | 1158 |
1159 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1159 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
1160 fake_rect_ = rect; | 1160 fake_rect_ = rect; |
1161 using_fake_rect_ = true; | 1161 using_fake_rect_ = true; |
1162 } | 1162 } |
1163 | 1163 |
1164 WebRect TestWebViewDelegate::fake_window_rect() { | 1164 WebRect TestWebViewDelegate::fake_window_rect() { |
1165 return fake_rect_; | 1165 return fake_rect_; |
1166 } | 1166 } |
OLD | NEW |