| 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 "content/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "device/sensors/public/cpp/orientation_data.h" | 46 #include "device/sensors/public/cpp/orientation_data.h" |
| 47 #include "gpu/ipc/service/image_transport_surface.h" | 47 #include "gpu/ipc/service/image_transport_surface.h" |
| 48 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" | 48 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" |
| 49 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 49 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 50 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 50 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 51 #include "third_party/WebKit/public/platform/WebRect.h" | 51 #include "third_party/WebKit/public/platform/WebRect.h" |
| 52 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" | 52 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" |
| 53 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 53 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
| 54 #include "third_party/WebKit/public/web/WebView.h" | 54 #include "third_party/WebKit/public/web/WebView.h" |
| 55 #include "ui/events/blink/blink_event_util.h" | 55 #include "ui/events/blink/blink_event_util.h" |
| 56 #include "ui/gfx/color_space_switches.h" |
| 56 #include "ui/gfx/geometry/vector2d.h" | 57 #include "ui/gfx/geometry/vector2d.h" |
| 57 #include "ui/gfx/icc_profile.h" | 58 #include "ui/gfx/icc_profile.h" |
| 58 #include "ui/gfx/switches.h" | |
| 59 #include "ui/gfx/test/icc_profiles.h" | 59 #include "ui/gfx/test/icc_profiles.h" |
| 60 | 60 |
| 61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
| 62 #include "content/browser/frame_host/popup_menu_helper_mac.h" | 62 #include "content/browser/frame_host/popup_menu_helper_mac.h" |
| 63 #elif defined(OS_WIN) | 63 #elif defined(OS_WIN) |
| 64 #include "content/child/font_warmup_win.h" | 64 #include "content/child/font_warmup_win.h" |
| 65 #include "third_party/WebKit/public/web/win/WebFontRendering.h" | 65 #include "third_party/WebKit/public/web/win/WebFontRendering.h" |
| 66 #include "third_party/skia/include/core/SkRefCnt.h" | 66 #include "third_party/skia/include/core/SkRefCnt.h" |
| 67 #include "third_party/skia/include/ports/SkFontMgr.h" | 67 #include "third_party/skia/include/ports/SkFontMgr.h" |
| 68 #include "third_party/skia/include/ports/SkTypeface_win.h" | 68 #include "third_party/skia/include/ports/SkTypeface_win.h" |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 } | 605 } |
| 606 } | 606 } |
| 607 | 607 |
| 608 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { | 608 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { |
| 609 RequestExtraData* extra_data = | 609 RequestExtraData* extra_data = |
| 610 static_cast<RequestExtraData*>(request.GetExtraData()); | 610 static_cast<RequestExtraData*>(request.GetExtraData()); |
| 611 return extra_data && extra_data->navigation_initiated_by_renderer(); | 611 return extra_data && extra_data->navigation_initiated_by_renderer(); |
| 612 } | 612 } |
| 613 | 613 |
| 614 } // namespace content | 614 } // namespace content |
| OLD | NEW |