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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/WebInputEvent.h" | 45 #include "third_party/WebKit/public/web/WebInputEvent.h" |
46 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 46 #include "third_party/WebKit/public/web/WebLocalFrame.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/geometry/size.h" |
53 #include "ui/gfx/size_f.h" | 53 #include "ui/gfx/geometry/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 | 56 |
57 #if defined(ENABLE_EXTENSIONS) | 57 #if defined(ENABLE_EXTENSIONS) |
58 #include "chrome/common/extensions/chrome_extension_messages.h" | 58 #include "chrome/common/extensions/chrome_extension_messages.h" |
59 #endif | 59 #endif |
60 | 60 |
61 using blink::WebAXObject; | 61 using blink::WebAXObject; |
62 using blink::WebCString; | 62 using blink::WebCString; |
63 using blink::WebDataSource; | 63 using blink::WebDataSource; |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 WebElement element = node.to<WebElement>(); | 478 WebElement element = node.to<WebElement>(); |
479 if (!element.hasHTMLTagName(tag_name)) | 479 if (!element.hasHTMLTagName(tag_name)) |
480 continue; | 480 continue; |
481 WebString value = element.getAttribute(attribute_name); | 481 WebString value = element.getAttribute(attribute_name); |
482 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 482 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
483 continue; | 483 continue; |
484 return true; | 484 return true; |
485 } | 485 } |
486 return false; | 486 return false; |
487 } | 487 } |
OLD | NEW |