| 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "net/base/net_util.h" | 41 #include "net/base/net_util.h" |
| 42 #include "ui/base/accelerators/accelerator.h" | 42 #include "ui/base/accelerators/accelerator.h" |
| 43 #include "ui/events/keycodes/keyboard_codes.h" | 43 #include "ui/events/keycodes/keyboard_codes.h" |
| 44 | 44 |
| 45 #if defined(OS_WIN) && defined(USE_AURA) | 45 #if defined(OS_WIN) && defined(USE_AURA) |
| 46 #include "content/public/browser/web_contents_view.h" | 46 #include "content/public/browser/web_contents_view.h" |
| 47 #include "ui/aura/root_window.h" | 47 #include "ui/aura/root_window.h" |
| 48 #include "ui/aura/window.h" | 48 #include "ui/aura/window.h" |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 using base::ASCIIToUTF16; |
| 52 using base::WideToUTF16; |
| 51 using content::NavigationController; | 53 using content::NavigationController; |
| 52 using content::WebContents; | 54 using content::WebContents; |
| 53 | 55 |
| 54 namespace { | 56 namespace { |
| 55 | 57 |
| 56 const char kAnchorPage[] = "anchor.html"; | 58 const char kAnchorPage[] = "anchor.html"; |
| 57 const char kAnchor[] = "#chapter2"; | 59 const char kAnchor[] = "#chapter2"; |
| 58 const char kFramePage[] = "frames.html"; | 60 const char kFramePage[] = "frames.html"; |
| 59 const char kFrameData[] = "framedata_general.html"; | 61 const char kFrameData[] = "framedata_general.html"; |
| 60 const char kUserSelectPage[] = "user-select.html"; | 62 const char kUserSelectPage[] = "user-select.html"; |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 ASSERT_EQ(result, SIMPLEREGION); | 1680 ASSERT_EQ(result, SIMPLEREGION); |
| 1679 bool rects_equal = | 1681 bool rects_equal = |
| 1680 region_before.left == region_after.left && | 1682 region_before.left == region_after.left && |
| 1681 region_before.top == region_after.top && | 1683 region_before.top == region_after.top && |
| 1682 region_before.right == region_after.right && | 1684 region_before.right == region_after.right && |
| 1683 region_before.bottom == region_after.bottom; | 1685 region_before.bottom == region_after.bottom; |
| 1684 ASSERT_FALSE(rects_equal); | 1686 ASSERT_FALSE(rects_equal); |
| 1685 } | 1687 } |
| 1686 | 1688 |
| 1687 #endif | 1689 #endif |
| OLD | NEW |