summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/base_lib.scons10
-rw-r--r--base/idle_timer_none.cc25
2 files changed, 33 insertions, 2 deletions
diff --git a/base/base_lib.scons b/base/base_lib.scons
index afb82ea..ac27c3c 100644
--- a/base/base_lib.scons
+++ b/base/base_lib.scons
@@ -277,8 +277,9 @@ if env.Bit('posix'):
'event_recorder.cc',
'file_version_info.cc',
- # We have an implementation of idle_timer, but it's unclear if we want it
- # yet, so it's commented out for now. Leave this 'unported'.
+ # We have an implementation of idle_timer that depends on XScreenSaver,
+ # but it's unclear if we want it yet, so it's commented out for now.
+ # Leave this 'unported'.
'idle_timer.cc',
'object_watcher.cc',
@@ -286,6 +287,11 @@ if env.Bit('posix'):
'resource_util.cc', # Uses HMODULE, but may be abstractable.
)
+ input_files.Append(
+ # See above note about idle_timer.cc.
+ 'idle_timer_none.cc',
+ )
+
if not env.Bit('windows'):
# Remove windows-specific files on non-Windows platforms.
# TODO(sgk):
diff --git a/base/idle_timer_none.cc b/base/idle_timer_none.cc
new file mode 100644
index 0000000..946535e
--- /dev/null
+++ b/base/idle_timer_none.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// A stub implementation of IdleTimer used to provide symbols needed by Chrome.
+// It's unclear whether we need the idle timer in the linux port, so we're
+// leaving it unported for now.
+
+#include "base/idle_timer.h"
+
+namespace base {
+
+IdleTimer::IdleTimer(TimeDelta idle_time, bool repeat) {
+}
+
+IdleTimer::~IdleTimer() {
+}
+
+void IdleTimer::Start() {
+}
+
+void IdleTimer::Stop() {
+}
+
+} // namespace base