| 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 26 matching lines...) Expand all Loading... |
| 37 #include "content/public/browser/render_view_host.h" | 37 #include "content/public/browser/render_view_host.h" |
| 38 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
| 39 #include "content/public/browser/web_contents_view.h" | 39 #include "content/public/browser/web_contents_view.h" |
| 40 #include "content/public/test/browser_test_utils.h" | 40 #include "content/public/test/browser_test_utils.h" |
| 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) | 45 #if defined(OS_WIN) |
| 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" | |
| 48 #include "ui/aura/window.h" | 47 #include "ui/aura/window.h" |
| 48 #include "ui/aura/window_event_dispatcher.h" |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 using base::ASCIIToUTF16; | 51 using base::ASCIIToUTF16; |
| 52 using base::WideToUTF16; | 52 using base::WideToUTF16; |
| 53 using content::NavigationController; | 53 using content::NavigationController; |
| 54 using content::WebContents; | 54 using content::WebContents; |
| 55 | 55 |
| 56 namespace { | 56 namespace { |
| 57 | 57 |
| 58 const char kAnchorPage[] = "anchor.html"; | 58 const char kAnchorPage[] = "anchor.html"; |
| (...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1617 ASSERT_EQ(result, SIMPLEREGION); | 1617 ASSERT_EQ(result, SIMPLEREGION); |
| 1618 bool rects_equal = | 1618 bool rects_equal = |
| 1619 region_before.left == region_after.left && | 1619 region_before.left == region_after.left && |
| 1620 region_before.top == region_after.top && | 1620 region_before.top == region_after.top && |
| 1621 region_before.right == region_after.right && | 1621 region_before.right == region_after.right && |
| 1622 region_before.bottom == region_after.bottom; | 1622 region_before.bottom == region_after.bottom; |
| 1623 ASSERT_FALSE(rects_equal); | 1623 ASSERT_FALSE(rects_equal); |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 #endif | 1626 #endif |
| OLD | NEW |