| 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 #ifndef CHROME_BROWSER_UI_COCOA_TRANSLATE_TRANSLATE_BUBBLE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TRANSLATE_TRANSLATE_BUBBLE_CONTROLLER_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 | 9 |
| 7 #include <memory> | 10 #include <memory> |
| 8 | 11 |
| 9 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 10 #include "chrome/browser/translate/chrome_translate_client.h" | 13 #include "chrome/browser/translate/chrome_translate_client.h" |
| 11 #import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h" | 14 #import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h" |
| 12 #include "components/translate/core/common/translate_errors.h" | 15 #include "components/translate/core/common/translate_errors.h" |
| 13 | 16 |
| 14 @class BrowserWindowController; | 17 @class BrowserWindowController; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 - (void)switchToErrorView:(translate::TranslateErrors::Type)errorType; | 85 - (void)switchToErrorView:(translate::TranslateErrors::Type)errorType; |
| 83 | 86 |
| 84 @end | 87 @end |
| 85 | 88 |
| 86 // The methods on this category are used internally by the controller and are | 89 // The methods on this category are used internally by the controller and are |
| 87 // only exposed for testing purposes. DO NOT USE OTHERWISE. | 90 // only exposed for testing purposes. DO NOT USE OTHERWISE. |
| 88 @interface TranslateBubbleController (ExposedForTesting) | 91 @interface TranslateBubbleController (ExposedForTesting) |
| 89 - (IBAction)handleCloseButtonPressed:(id)sender; | 92 - (IBAction)handleCloseButtonPressed:(id)sender; |
| 90 - (IBAction)handleTranslateButtonPressed:(id)sender; | 93 - (IBAction)handleTranslateButtonPressed:(id)sender; |
| 91 @end | 94 @end |
| 95 |
| 96 #endif // CHROME_BROWSER_UI_COCOA_TRANSLATE_TRANSLATE_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |