Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 #import <Cocoa/Cocoa.h> | |
| 6 | |
| 7 #include "base/memory/scoped_ptr.h" | |
| 8 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | |
| 9 #include "chrome/browser/ui/translate/translate_bubble_model.h" | |
| 10 #include "components/translate/core/common/translate_errors.h" | |
| 11 | |
| 12 @class BrowserWindowController; | |
| 13 | |
| 14 namespace content { | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 @interface TranslateBubbleController : BaseBubbleController { | |
|
Nico
2014/02/05 06:07:18
Needs a class comment
hajimehoshi
2014/02/05 11:08:03
Done.
| |
| 19 @private | |
| 20 content::WebContents* webContents_; | |
| 21 scoped_ptr<TranslateBubbleModel> model_; | |
| 22 | |
| 23 // Whether the translation is acutually executed. | |
|
Nico
2014/02/05 06:07:18
typo "acutually"
hajimehoshi
2014/02/05 11:08:03
Done.
| |
| 24 BOOL translateExecuted_; | |
| 25 } | |
| 26 | |
| 27 // TODO: WebContents Observer? | |
| 28 | |
| 29 + (void)showBubbleWithBrowserWindowController:(BrowserWindowController*)controll er | |
| 30 webContents:(content::WebContents*)webContents | |
| 31 viewState:(TranslateBubbleModel::ViewState | |
| 32 )viewState | |
| 33 errorType:(TranslateErrors::Type)errorType; | |
|
Nico
2014/02/05 06:07:18
`git cl format` produces
+ (void)
showBubbleW
hajimehoshi
2014/02/05 11:08:03
Done.
| |
| 34 | |
| 35 @end | |
| OLD | NEW |