| Index: chrome/browser/ui/cocoa/translate/translate_bubble_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h b/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dfb496fe5a866451bad3054cab259f3413b741d7
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/cocoa/translate/translate_bubble_controller.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#import <Cocoa/Cocoa.h>
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "chrome/browser/translate/translate_tab_helper.h"
|
| +#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
|
| +#include "components/translate/core/common/translate_errors.h"
|
| +
|
| +@class BrowserWindowController;
|
| +
|
| +class TranslateBubbleModel;
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +// Displays the Translate bubble. The Translate bubble is a bubble which
|
| +// pops up when clicking the Translate icon on Omnibox. This bubble
|
| +// allows us to translate a foreign page into user-selected language,
|
| +// revert this, and configure the translate setting.
|
| +@interface TranslateBubbleController : BaseBubbleController {
|
| + @private
|
| + content::WebContents* webContents_;
|
| + scoped_ptr<TranslateBubbleModel> model_;
|
| +
|
| + // Whether the translation is actually executed once at least.
|
| + BOOL translateExecuted_;
|
| +}
|
| +
|
| ++ (void) showForParentWindow:(BrowserWindowController*)controller
|
| + webContents:(content::WebContents*)webContents
|
| + step:(TranslateTabHelper::TranslateStep)step
|
| + errorType:(TranslateErrors::Type)errorType;
|
| ++ (TranslateBubbleController*)current;
|
| +
|
| +@end
|
|
|