| 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 |
| 11 #include <objidl.h> | 11 #include <objidl.h> |
| 12 #include <shlobj.h> | 12 #include <shlobj.h> |
| 13 #include <shlwapi.h> |
| 13 | 14 |
| 14 #include "base/gfx/point.h" | 15 #include "base/gfx/point.h" |
| 15 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
| 16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 17 #include "base/trace_event.h" | 18 #include "base/trace_event.h" |
| 18 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 19 #include "webkit/glue/webdatasource.h" | 20 #include "webkit/glue/webdatasource.h" |
| 20 #include "webkit/glue/webdropdata.h" | 21 #include "webkit/glue/webdropdata.h" |
| 21 #include "webkit/glue/weberror.h" | 22 #include "webkit/glue/weberror.h" |
| 22 #include "webkit/glue/webframe.h" | 23 #include "webkit/glue/webframe.h" |
| (...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 else | 907 else |
| 907 return L"main frame"; | 908 return L"main frame"; |
| 908 } else { | 909 } else { |
| 909 if (name.length()) | 910 if (name.length()) |
| 910 return L"frame \"" + name + L"\""; | 911 return L"frame \"" + name + L"\""; |
| 911 else | 912 else |
| 912 return L"frame (anonymous)"; | 913 return L"frame (anonymous)"; |
| 913 } | 914 } |
| 914 } | 915 } |
| 915 | 916 |
| OLD | NEW |