| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/chrome_render_view_observer.h" | 5 #include "chrome/renderer/chrome_render_view_observer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "extensions/common/constants.h" | 31 #include "extensions/common/constants.h" |
| 32 #include "net/base/data_url.h" | 32 #include "net/base/data_url.h" |
| 33 #include "skia/ext/image_operations.h" | 33 #include "skia/ext/image_operations.h" |
| 34 #include "skia/ext/platform_canvas.h" | 34 #include "skia/ext/platform_canvas.h" |
| 35 #include "third_party/WebKit/public/platform/WebCString.h" | 35 #include "third_party/WebKit/public/platform/WebCString.h" |
| 36 #include "third_party/WebKit/public/platform/WebRect.h" | 36 #include "third_party/WebKit/public/platform/WebRect.h" |
| 37 #include "third_party/WebKit/public/platform/WebSize.h" | 37 #include "third_party/WebKit/public/platform/WebSize.h" |
| 38 #include "third_party/WebKit/public/platform/WebString.h" | 38 #include "third_party/WebKit/public/platform/WebString.h" |
| 39 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 39 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 40 #include "third_party/WebKit/public/platform/WebVector.h" | 40 #include "third_party/WebKit/public/platform/WebVector.h" |
| 41 #include "third_party/WebKit/public/web/WebAccessibilityObject.h" | 41 #include "third_party/WebKit/public/web/WebAXObject.h" |
| 42 #include "third_party/WebKit/public/web/WebDataSource.h" | 42 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 43 #include "third_party/WebKit/public/web/WebDocument.h" | 43 #include "third_party/WebKit/public/web/WebDocument.h" |
| 44 #include "third_party/WebKit/public/web/WebElement.h" | 44 #include "third_party/WebKit/public/web/WebElement.h" |
| 45 #include "third_party/WebKit/public/web/WebFrame.h" | 45 #include "third_party/WebKit/public/web/WebFrame.h" |
| 46 #include "third_party/WebKit/public/web/WebInputEvent.h" | 46 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 47 #include "third_party/WebKit/public/web/WebNode.h" | 47 #include "third_party/WebKit/public/web/WebNode.h" |
| 48 #include "third_party/WebKit/public/web/WebNodeList.h" | 48 #include "third_party/WebKit/public/web/WebNodeList.h" |
| 49 #include "third_party/WebKit/public/web/WebView.h" | 49 #include "third_party/WebKit/public/web/WebView.h" |
| 50 #include "ui/base/ui_base_switches_util.h" | 50 #include "ui/base/ui_base_switches_util.h" |
| 51 #include "ui/gfx/favicon_size.h" | 51 #include "ui/gfx/favicon_size.h" |
| 52 #include "ui/gfx/size.h" | 52 #include "ui/gfx/size.h" |
| 53 #include "ui/gfx/size_f.h" | 53 #include "ui/gfx/size_f.h" |
| 54 #include "ui/gfx/skbitmap_operations.h" | 54 #include "ui/gfx/skbitmap_operations.h" |
| 55 #include "v8/include/v8-testing.h" | 55 #include "v8/include/v8-testing.h" |
| 56 #include "webkit/glue/webkit_glue.h" | 56 #include "webkit/glue/webkit_glue.h" |
| 57 | 57 |
| 58 using WebKit::WebAccessibilityObject; | 58 using WebKit::WebAXObject; |
| 59 using WebKit::WebCString; | 59 using WebKit::WebCString; |
| 60 using WebKit::WebDataSource; | 60 using WebKit::WebDataSource; |
| 61 using WebKit::WebDocument; | 61 using WebKit::WebDocument; |
| 62 using WebKit::WebElement; | 62 using WebKit::WebElement; |
| 63 using WebKit::WebFrame; | 63 using WebKit::WebFrame; |
| 64 using WebKit::WebGestureEvent; | 64 using WebKit::WebGestureEvent; |
| 65 using WebKit::WebIconURL; | 65 using WebKit::WebIconURL; |
| 66 using WebKit::WebNode; | 66 using WebKit::WebNode; |
| 67 using WebKit::WebNodeList; | 67 using WebKit::WebNodeList; |
| 68 using WebKit::WebRect; | 68 using WebKit::WebRect; |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 WebElement element = node.to<WebElement>(); | 929 WebElement element = node.to<WebElement>(); |
| 930 if (!element.hasTagName(tag_name)) | 930 if (!element.hasTagName(tag_name)) |
| 931 continue; | 931 continue; |
| 932 WebString value = element.getAttribute(attribute_name); | 932 WebString value = element.getAttribute(attribute_name); |
| 933 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 933 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
| 934 continue; | 934 continue; |
| 935 return true; | 935 return true; |
| 936 } | 936 } |
| 937 return false; | 937 return false; |
| 938 } | 938 } |
| OLD | NEW |