OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 #include "base/debug/trace_event.h" |
11 #include "base/file_util.h" | 12 #include "base/file_util.h" |
12 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
13 #include "base/process_util.h" | 14 #include "base/process_util.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
16 #include "base/trace_event.h" | |
17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "gfx/native_widget_types.h" | 19 #include "gfx/native_widget_types.h" |
20 #include "gfx/point.h" | 20 #include "gfx/point.h" |
21 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
22 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" |
23 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
24 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
25 #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationClientMo
ck.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationClientMo
ck.h" |
26 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" | 26 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 } | 1344 } |
1345 | 1345 |
1346 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1346 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
1347 fake_rect_ = rect; | 1347 fake_rect_ = rect; |
1348 using_fake_rect_ = true; | 1348 using_fake_rect_ = true; |
1349 } | 1349 } |
1350 | 1350 |
1351 WebRect TestWebViewDelegate::fake_window_rect() { | 1351 WebRect TestWebViewDelegate::fake_window_rect() { |
1352 return fake_rect_; | 1352 return fake_rect_; |
1353 } | 1353 } |
OLD | NEW |