18e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project/*
2692e5dbf12901edacf14812a6fae25462920af42Steve Block * Copyright (C) 2010 Company 100.
38e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *
48e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * Redistribution and use in source and binary forms, with or without
58e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * modification, are permitted provided that the following conditions
68e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * are met:
7692e5dbf12901edacf14812a6fae25462920af42Steve Block *  * Redistributions of source code must retain the above copyright
88e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *    notice, this list of conditions and the following disclaimer.
9692e5dbf12901edacf14812a6fae25462920af42Steve Block *  * Redistributions in binary form must reproduce the above copyright
108e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *    notice, this list of conditions and the following disclaimer in the
118e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *    documentation and/or other materials provided with the distribution.
128e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *
13692e5dbf12901edacf14812a6fae25462920af42Steve Block * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
148e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
158e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16692e5dbf12901edacf14812a6fae25462920af42Steve Block * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
178e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
188e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
198e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
208e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
218e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
228e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23692e5dbf12901edacf14812a6fae25462920af42Steve Block * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
248e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project */
258e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
26692e5dbf12901edacf14812a6fae25462920af42Steve Block#include "config.h"
27692e5dbf12901edacf14812a6fae25462920af42Steve Block#include "SystemTime.h"
288e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
292fc2651226baac27029e38c9d6ef883fa32084dbSteve Block#include "NotImplemented.h"
302fc2651226baac27029e38c9d6ef883fa32084dbSteve Block#include <limits>
318e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
328e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Projectnamespace WebCore {
338e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
34692e5dbf12901edacf14812a6fae25462920af42Steve Blockfloat userIdleTime()
35692e5dbf12901edacf14812a6fae25462920af42Steve Block{
362fc2651226baac27029e38c9d6ef883fa32084dbSteve Block    notImplemented();
372fc2651226baac27029e38c9d6ef883fa32084dbSteve Block    // Return an arbitrarily high userIdleTime so that releasing pages from the page cache isn't postponed.
382fc2651226baac27029e38c9d6ef883fa32084dbSteve Block    return std::numeric_limits<float>::max();
39692e5dbf12901edacf14812a6fae25462920af42Steve Block}
405f1ab04193ad0130ca8204aadaceae083aca9881Feng Qian
412fc2651226baac27029e38c9d6ef883fa32084dbSteve Block} // namespace WebCore
42