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/WebNode.h" | 44 #include "third_party/WebKit/public/web/WebNode.h" |
45 #include "third_party/WebKit/public/web/WebNodeList.h" | 45 #include "third_party/WebKit/public/web/WebNodeList.h" |
46 #include "third_party/WebKit/public/web/WebView.h" | 46 #include "third_party/WebKit/public/web/WebView.h" |
47 #include "ui/base/ui_base_switches_util.h" | 47 #include "ui/base/ui_base_switches_util.h" |
48 #include "ui/gfx/favicon_size.h" | 48 #include "ui/gfx/favicon_size.h" |
49 #include "ui/gfx/size.h" | 49 #include "ui/gfx/size.h" |
50 #include "ui/gfx/size_f.h" | 50 #include "ui/gfx/size_f.h" |
51 #include "ui/gfx/skbitmap_operations.h" | 51 #include "ui/gfx/skbitmap_operations.h" |
52 #include "v8/include/v8-testing.h" | 52 #include "v8/include/v8-testing.h" |
53 | 53 |
| 54 #if defined(ENABLE_EXTENSIONS) |
| 55 #include "chrome/common/extensions/chrome_extension_messages.h" |
| 56 #endif |
| 57 |
54 using blink::WebAXObject; | 58 using blink::WebAXObject; |
55 using blink::WebCString; | 59 using blink::WebCString; |
56 using blink::WebDataSource; | 60 using blink::WebDataSource; |
57 using blink::WebDocument; | 61 using blink::WebDocument; |
58 using blink::WebElement; | 62 using blink::WebElement; |
59 using blink::WebFrame; | 63 using blink::WebFrame; |
60 using blink::WebGestureEvent; | 64 using blink::WebGestureEvent; |
61 using blink::WebIconURL; | 65 using blink::WebIconURL; |
62 using blink::WebLocalFrame; | 66 using blink::WebLocalFrame; |
63 using blink::WebNode; | 67 using blink::WebNode; |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 WebElement element = node.to<WebElement>(); | 518 WebElement element = node.to<WebElement>(); |
515 if (!element.hasHTMLTagName(tag_name)) | 519 if (!element.hasHTMLTagName(tag_name)) |
516 continue; | 520 continue; |
517 WebString value = element.getAttribute(attribute_name); | 521 WebString value = element.getAttribute(attribute_name); |
518 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 522 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
519 continue; | 523 continue; |
520 return true; | 524 return true; |
521 } | 525 } |
522 return false; | 526 return false; |
523 } | 527 } |
OLD | NEW |