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

Side by Side Diff: webkit/support/webkit_support.h

Issue 6532012: Set the minimum timer interval on a per-page basis, and adjust it when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« webkit/glue/webpreferences.cc ('K') | « webkit/glue/webpreferences.cc ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef WEBKIT_SUPPORT_WEBIT_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_WEBIT_SUPPORT_H_
6 #define WEBKIT_SUPPORT_WEBIT_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_WEBIT_SUPPORT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 struct WebURLError; 34 struct WebURLError;
35 } 35 }
36 36
37 // This package provides functions used by DumpRenderTree/chromium. 37 // This package provides functions used by DumpRenderTree/chromium.
38 // DumpRenderTree/chromium uses some code in webkit/ of Chromium. In 38 // DumpRenderTree/chromium uses some code in webkit/ of Chromium. In
39 // order to minimize the dependency from WebKit to Chromium, the 39 // order to minimize the dependency from WebKit to Chromium, the
40 // following functions uses WebKit API classes as possible and hide 40 // following functions uses WebKit API classes as possible and hide
41 // implementation classes. 41 // implementation classes.
42 namespace webkit_support { 42 namespace webkit_support {
43 43
44 // - Timers
45
46 // Keep this value in sync with that in webkit_glue.h!
47 const double ForegroundTabTimerInterval = 0.004;
darin (slow to review) 2011/02/17 06:42:32 maybe it would be better to make this a function c
Ken Russell (switch to Gerrit) 2011/02/18 01:05:54 Changed to "double GetForegroundTabTimerInterval()
48
44 // Initializes or terminates a test environment. 49 // Initializes or terminates a test environment.
45 // |unit_test_mode| should be set to true when running in a TestSuite, in which 50 // |unit_test_mode| should be set to true when running in a TestSuite, in which
46 // case no AtExitManager is created and ICU is not initialized (as it is already 51 // case no AtExitManager is created and ICU is not initialized (as it is already
47 // done by the TestSuite). 52 // done by the TestSuite).
48 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls 53 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls
49 // WebKit::initialize(). 54 // WebKit::initialize().
50 // TearDownTestEnvironment() calls WebKit::shutdown(). 55 // TearDownTestEnvironment() calls WebKit::shutdown().
51 // SetUpTestEnvironmentForUnitTests() should be used when running in a 56 // SetUpTestEnvironmentForUnitTests() should be used when running in a
52 // TestSuite, in which case no AtExitManager is created and ICU is not 57 // TestSuite, in which case no AtExitManager is created and ICU is not
53 // initialized (as it is already done by the TestSuite). 58 // initialized (as it is already done by the TestSuite).
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 VKEY_NEXT = ui::VKEY_NEXT, 183 VKEY_NEXT = ui::VKEY_NEXT,
179 VKEY_HOME = ui::VKEY_HOME, 184 VKEY_HOME = ui::VKEY_HOME,
180 VKEY_END = ui::VKEY_END, 185 VKEY_END = ui::VKEY_END,
181 VKEY_SNAPSHOT = ui::VKEY_SNAPSHOT, 186 VKEY_SNAPSHOT = ui::VKEY_SNAPSHOT,
182 VKEY_F1 = ui::VKEY_F1, 187 VKEY_F1 = ui::VKEY_F1,
183 }; 188 };
184 189
185 } // namespace webkit_support 190 } // namespace webkit_support
186 191
187 #endif // WEBKIT_SUPPORT_WEBIT_CLIENT_IMPL_H_ 192 #endif // WEBKIT_SUPPORT_WEBIT_CLIENT_IMPL_H_
OLDNEW
« webkit/glue/webpreferences.cc ('K') | « webkit/glue/webpreferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698