OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/browser/devtools/renderer_overrides_handler.h" | 5 #include "content/browser/devtools/renderer_overrides_handler.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/barrier_closure.h" | 10 #include "base/barrier_closure.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "content/public/browser/render_widget_host_view.h" | 36 #include "content/public/browser/render_widget_host_view.h" |
37 #include "content/public/browser/storage_partition.h" | 37 #include "content/public/browser/storage_partition.h" |
38 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
39 #include "content/public/browser/web_contents_delegate.h" | 39 #include "content/public/browser/web_contents_delegate.h" |
40 #include "content/public/common/content_client.h" | 40 #include "content/public/common/content_client.h" |
41 #include "content/public/common/page_transition_types.h" | 41 #include "content/public/common/page_transition_types.h" |
42 #include "content/public/common/referrer.h" | 42 #include "content/public/common/referrer.h" |
43 #include "content/public/common/url_constants.h" | 43 #include "content/public/common/url_constants.h" |
44 #include "ipc/ipc_sender.h" | 44 #include "ipc/ipc_sender.h" |
45 #include "net/base/net_util.h" | 45 #include "net/base/net_util.h" |
| 46 #include "storage/browser/quota/quota_manager.h" |
46 #include "third_party/WebKit/public/platform/WebCursorInfo.h" | 47 #include "third_party/WebKit/public/platform/WebCursorInfo.h" |
47 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 48 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
48 #include "third_party/WebKit/public/web/WebInputEvent.h" | 49 #include "third_party/WebKit/public/web/WebInputEvent.h" |
49 #include "third_party/skia/include/core/SkCanvas.h" | 50 #include "third_party/skia/include/core/SkCanvas.h" |
50 #include "ui/gfx/codec/jpeg_codec.h" | 51 #include "ui/gfx/codec/jpeg_codec.h" |
51 #include "ui/gfx/codec/png_codec.h" | 52 #include "ui/gfx/codec/png_codec.h" |
52 #include "ui/gfx/display.h" | 53 #include "ui/gfx/display.h" |
53 #include "ui/gfx/screen.h" | 54 #include "ui/gfx/screen.h" |
54 #include "ui/gfx/size_conversions.h" | 55 #include "ui/gfx/size_conversions.h" |
55 #include "ui/snapshot/snapshot.h" | 56 #include "ui/snapshot/snapshot.h" |
56 #include "url/gurl.h" | 57 #include "url/gurl.h" |
57 #include "webkit/browser/quota/quota_manager.h" | |
58 | 58 |
59 using blink::WebGestureEvent; | 59 using blink::WebGestureEvent; |
60 using blink::WebInputEvent; | 60 using blink::WebInputEvent; |
61 using blink::WebMouseEvent; | 61 using blink::WebMouseEvent; |
62 | 62 |
63 namespace content { | 63 namespace content { |
64 | 64 |
65 namespace { | 65 namespace { |
66 | 66 |
67 static const char kPng[] = "png"; | 67 static const char kPng[] = "png"; |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 return; | 1325 return; |
1326 bool enabled = touch_emulation_enabled_ || screencast_command_.get(); | 1326 bool enabled = touch_emulation_enabled_ || screencast_command_.get(); |
1327 host_->SetTouchEventEmulationEnabled(enabled); | 1327 host_->SetTouchEventEmulationEnabled(enabled); |
1328 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>( | 1328 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>( |
1329 WebContents::FromRenderViewHost(host_)); | 1329 WebContents::FromRenderViewHost(host_)); |
1330 if (web_contents) | 1330 if (web_contents) |
1331 web_contents->SetForceDisableOverscrollContent(enabled); | 1331 web_contents->SetForceDisableOverscrollContent(enabled); |
1332 } | 1332 } |
1333 | 1333 |
1334 } // namespace content | 1334 } // namespace content |
OLD | NEW |