blob: fac71a44da7afcca0cd66e047a698d3a40734ca1 [file] [log] [blame]
// Copyright (c) 2012 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.
#ifndef CHROME_BROWSER_UI_WEBUI_INSTANT_UI_H_
#define CHROME_BROWSER_UI_WEBUI_INSTANT_UI_H_
#include "content/public/browser/web_ui_controller.h"
class PrefService;
namespace content {
class BrowserContext;
}
// Provides configuration options for Instant web search.
class InstantUI : public content::WebUIController {
public:
// Constructs an instance using |web_ui| for its data sources and message
// handlers.
explicit InstantUI(content::WebUI* web_ui);
// Returns a scale factor to slow down Instant animations.
static int GetSlowAnimationScaleFactor();
// Returns true if search provider logo should be shown.
static bool ShouldShowSearchProviderLogo(
content::BrowserContext* browser_context);
static void RegisterUserPrefs(PrefService* user_prefs);
private:
DISALLOW_COPY_AND_ASSIGN(InstantUI);
};
#endif // CHROME_BROWSER_UI_WEBUI_INSTANT_UI_H_