| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/translate/chrome_translate_client.h" | 9 #include "chrome/browser/translate/chrome_translate_client.h" |
| 10 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 10 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 BOOL translateExecuted_; | 57 BOOL translateExecuted_; |
| 58 } | 58 } |
| 59 | 59 |
| 60 @property(readonly, nonatomic) const content::WebContents* webContents; | 60 @property(readonly, nonatomic) const content::WebContents* webContents; |
| 61 @property(readonly, nonatomic) const TranslateBubbleModel* model; | 61 @property(readonly, nonatomic) const TranslateBubbleModel* model; |
| 62 | 62 |
| 63 - (id)initWithParentWindow:(BrowserWindowController*)controller | 63 - (id)initWithParentWindow:(BrowserWindowController*)controller |
| 64 model:(scoped_ptr<TranslateBubbleModel>)model | 64 model:(scoped_ptr<TranslateBubbleModel>)model |
| 65 webContents:(content::WebContents*)webContents; | 65 webContents:(content::WebContents*)webContents; |
| 66 - (void)switchView:(TranslateBubbleModel::ViewState)viewState; | 66 - (void)switchView:(TranslateBubbleModel::ViewState)viewState; |
| 67 - (void)switchToErrorView:(TranslateErrors::Type)errorType; | 67 - (void)switchToErrorView:(translate::TranslateErrors::Type)errorType; |
| 68 | 68 |
| 69 @end | 69 @end |
| OLD | NEW |