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

Side by Side Diff: Source/core/testing/Internals.h

Issue 16298005: Remove Battery Status API support code from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/features.gypi ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 unsigned numberOfScrollableAreas(Document*, ExceptionCode&); 192 unsigned numberOfScrollableAreas(Document*, ExceptionCode&);
193 193
194 bool isPageBoxVisible(Document*, int pageNumber, ExceptionCode&); 194 bool isPageBoxVisible(Document*, int pageNumber, ExceptionCode&);
195 195
196 static const char* internalsId; 196 static const char* internalsId;
197 197
198 InternalSettings* settings() const; 198 InternalSettings* settings() const;
199 InternalRuntimeFlags* runtimeFlags() const; 199 InternalRuntimeFlags* runtimeFlags() const;
200 unsigned workerThreadCount() const; 200 unsigned workerThreadCount() const;
201 201
202 void setBatteryStatus(Document*, const String& eventType, bool charging, dou ble chargingTime, double dischargingTime, double level, ExceptionCode&);
203
204 void setDeviceProximity(Document*, const String& eventType, double value, do uble min, double max, ExceptionCode&); 202 void setDeviceProximity(Document*, const String& eventType, double value, do uble min, double max, ExceptionCode&);
205 203
206 enum { 204 enum {
207 // Values need to be kept in sync with Internals.idl. 205 // Values need to be kept in sync with Internals.idl.
208 LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1, 206 LAYER_TREE_INCLUDES_VISIBLE_RECTS = 1,
209 LAYER_TREE_INCLUDES_TILE_CACHES = 2, 207 LAYER_TREE_INCLUDES_TILE_CACHES = 2,
210 LAYER_TREE_INCLUDES_REPAINT_RECTS = 4, 208 LAYER_TREE_INCLUDES_REPAINT_RECTS = 4,
211 LAYER_TREE_INCLUDES_PAINTING_PHASES = 8 209 LAYER_TREE_INCLUDES_PAINTING_PHASES = 8
212 }; 210 };
213 String layerTreeAsText(Document*, unsigned flags, ExceptionCode&) const; 211 String layerTreeAsText(Document*, unsigned flags, ExceptionCode&) const;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 301
304 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionCode&); 302 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionCode&);
305 RefPtr<DOMWindow> m_frontendWindow; 303 RefPtr<DOMWindow> m_frontendWindow;
306 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; 304 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel;
307 RefPtr<InternalRuntimeFlags> m_runtimeFlags; 305 RefPtr<InternalRuntimeFlags> m_runtimeFlags;
308 }; 306 };
309 307
310 } // namespace WebCore 308 } // namespace WebCore
311 309
312 #endif 310 #endif
OLDNEW
« no previous file with comments | « Source/core/features.gypi ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698