Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: sky/viewer/platform/platform_impl.cc

Issue 720713003: Remove WebScroll* (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sky/viewer/platform/platform_impl.h" 5 #include "sky/viewer/platform/platform_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 120
121 bool PlatformImpl::isThreadedCompositingEnabled() { 121 bool PlatformImpl::isThreadedCompositingEnabled() {
122 return true; 122 return true;
123 } 123 }
124 124
125 blink::WebCompositorSupport* PlatformImpl::compositorSupport() { 125 blink::WebCompositorSupport* PlatformImpl::compositorSupport() {
126 return &compositor_support_; 126 return &compositor_support_;
127 } 127 }
128 128
129 blink::WebScrollbarBehavior* PlatformImpl::scrollbarBehavior() {
130 return &scrollbar_behavior_;
131 }
132
133 mojo::NetworkService* PlatformImpl::networkService() { 129 mojo::NetworkService* PlatformImpl::networkService() {
134 return network_service_.get(); 130 return network_service_.get();
135 } 131 }
136 132
137 blink::WebURLLoader* PlatformImpl::createURLLoader() { 133 blink::WebURLLoader* PlatformImpl::createURLLoader() {
138 return new WebURLLoaderImpl(network_service_.get()); 134 return new WebURLLoaderImpl(network_service_.get());
139 } 135 }
140 136
141 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url) 137 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
142 const { 138 const {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const unsigned char* category_group_enabled, 229 const unsigned char* category_group_enabled,
234 const char* name, 230 const char* name,
235 TraceEventHandle handle) { 231 TraceEventHandle handle) {
236 base::debug::TraceEventHandle traceEventHandle; 232 base::debug::TraceEventHandle traceEventHandle;
237 memcpy(&traceEventHandle, &handle, sizeof(handle)); 233 memcpy(&traceEventHandle, &handle, sizeof(handle));
238 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( 234 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(
239 category_group_enabled, name, traceEventHandle); 235 category_group_enabled, name, traceEventHandle);
240 } 236 }
241 237
242 } // namespace sky 238 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698