| 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 "config.h" | 9 #include "config.h" |
| 10 | 10 |
| 11 #undef LOG | 11 #undef LOG |
| 12 | 12 |
| 13 #include "webkit/tools/test_shell/test_webview_delegate.h" | 13 #include "webkit/tools/test_shell/test_webview_delegate.h" |
| 14 | 14 |
| 15 #include "app/gfx/native_widget_types.h" |
| 15 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 16 #include "base/gfx/point.h" | 17 #include "base/gfx/point.h" |
| 17 #include "base/gfx/native_widget_types.h" | |
| 18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
| 19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/trace_event.h" | 21 #include "base/trace_event.h" |
| 22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
| 23 #include "webkit/api/public/WebConsoleMessage.h" | 23 #include "webkit/api/public/WebConsoleMessage.h" |
| 24 #include "webkit/api/public/WebContextMenuData.h" | 24 #include "webkit/api/public/WebContextMenuData.h" |
| 25 #include "webkit/api/public/WebCString.h" | 25 #include "webkit/api/public/WebCString.h" |
| 26 #include "webkit/api/public/WebData.h" | 26 #include "webkit/api/public/WebData.h" |
| 27 #include "webkit/api/public/WebDataSource.h" | 27 #include "webkit/api/public/WebDataSource.h" |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1104 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
| 1105 fake_rect_ = rect; | 1105 fake_rect_ = rect; |
| 1106 using_fake_rect_ = true; | 1106 using_fake_rect_ = true; |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 WebRect TestWebViewDelegate::fake_window_rect() { | 1109 WebRect TestWebViewDelegate::fake_window_rect() { |
| 1110 return fake_rect_; | 1110 return fake_rect_; |
| 1111 } | 1111 } |
| OLD | NEW |