| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "third_party/WebKit/public/web/WebFrame.h" | 44 #include "third_party/WebKit/public/web/WebFrame.h" |
| 45 #include "third_party/WebKit/public/web/WebInputEvent.h" | 45 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 46 #include "third_party/WebKit/public/web/WebNode.h" | 46 #include "third_party/WebKit/public/web/WebNode.h" |
| 47 #include "third_party/WebKit/public/web/WebNodeList.h" | 47 #include "third_party/WebKit/public/web/WebNodeList.h" |
| 48 #include "third_party/WebKit/public/web/WebView.h" | 48 #include "third_party/WebKit/public/web/WebView.h" |
| 49 #include "ui/base/ui_base_switches_util.h" | 49 #include "ui/base/ui_base_switches_util.h" |
| 50 #include "ui/gfx/favicon_size.h" | 50 #include "ui/gfx/favicon_size.h" |
| 51 #include "ui/gfx/size.h" | 51 #include "ui/gfx/size.h" |
| 52 #include "ui/gfx/skbitmap_operations.h" | 52 #include "ui/gfx/skbitmap_operations.h" |
| 53 #include "v8/include/v8-testing.h" | 53 #include "v8/include/v8-testing.h" |
| 54 #include "webkit/glue/image_decoder.h" | |
| 55 #include "webkit/glue/webkit_glue.h" | 54 #include "webkit/glue/webkit_glue.h" |
| 56 | 55 |
| 57 using WebKit::WebAccessibilityObject; | 56 using WebKit::WebAccessibilityObject; |
| 58 using WebKit::WebCString; | 57 using WebKit::WebCString; |
| 59 using WebKit::WebDataSource; | 58 using WebKit::WebDataSource; |
| 60 using WebKit::WebDocument; | 59 using WebKit::WebDocument; |
| 61 using WebKit::WebElement; | 60 using WebKit::WebElement; |
| 62 using WebKit::WebFrame; | 61 using WebKit::WebFrame; |
| 63 using WebKit::WebGestureEvent; | 62 using WebKit::WebGestureEvent; |
| 64 using WebKit::WebIconURL; | 63 using WebKit::WebIconURL; |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 WebElement element = node.to<WebElement>(); | 842 WebElement element = node.to<WebElement>(); |
| 844 if (!element.hasTagName(tag_name)) | 843 if (!element.hasTagName(tag_name)) |
| 845 continue; | 844 continue; |
| 846 WebString value = element.getAttribute(attribute_name); | 845 WebString value = element.getAttribute(attribute_name); |
| 847 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 846 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
| 848 continue; | 847 continue; |
| 849 return true; | 848 return true; |
| 850 } | 849 } |
| 851 return false; | 850 return false; |
| 852 } | 851 } |
| OLD | NEW |