1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_ 6 #define CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_ 7 8 #include <atlbase.h> 9 #include <atlcom.h> 10 11 interface IWebBrowser2; 12 13 // Integrates the Turndown prompt functionality with a specified IWebBrowser2 14 // instance. Displays prompts informing the user that Chrome Frame is being 15 // turned down. 16 namespace turndown_prompt { 17 18 // Returns true if the Turndown prompt is suppressed. Suppression may be 19 // explicit via the SuppressChromeFrameTurndownPrompt GPO or implicit by virtue 20 // of Chrome Frame having been installed via the .MSI or by updates to Chrome 21 // Frame having been disabled. 22 bool IsPromptSuppressed(); 23 24 // Configures |web_browser| for the turndown prompt if the prompt has not been 25 // suppressed. 26 void Configure(IWebBrowser2* web_browser); 27 28 }; // namespace turndown_prompt 29 30 #endif // CHROME_FRAME_TURNDOWN_PROMPT_TURNDOWN_PROMPT_H_ 31