#include "chrome/browser/ui/translate/translate_bubble_factory.h"
#include <string>
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "components/translate/core/browser/translate_step.h"
namespace {
ShowTranslateBubbleResult ShowDefault(BrowserWindow* window,
content::WebContents* web_contents,
translate::TranslateStep step,
const std::string& source_language,
const std::string& target_language,
translate::TranslateErrors error_type,
bool is_user_gesture) { … }
}
TranslateBubbleFactory::~TranslateBubbleFactory() { … }
ShowTranslateBubbleResult TranslateBubbleFactory::Show(
BrowserWindow* window,
content::WebContents* web_contents,
translate::TranslateStep step,
const std::string& source_language,
const std::string& target_language,
translate::TranslateErrors error_type,
bool is_user_gesture) { … }
void TranslateBubbleFactory::SetFactory(TranslateBubbleFactory* factory) { … }
TranslateBubbleFactory* TranslateBubbleFactory::current_factory_ = …;