| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCATION_BAR_ZOOM_DECORATION_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 void ShowBubble(BOOL auto_close); | 39 void ShowBubble(BOOL auto_close); |
| 40 | 40 |
| 41 // Closes the zoom bubble. | 41 // Closes the zoom bubble. |
| 42 void CloseBubble(); | 42 void CloseBubble(); |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 // Hides all UI associated with the zoom decoration. | 45 // Hides all UI associated with the zoom decoration. |
| 46 // Virtual and protected for testing. | 46 // Virtual and protected for testing. |
| 47 virtual void HideUI(); | 47 virtual void HideUI(); |
| 48 | 48 |
| 49 // Show and update UI associated with the zoom decoration. | 49 // Update UI associated with the zoom decoration. |
| 50 // Virtual and protected for testing. | 50 // Virtual and protected for testing. |
| 51 virtual void ShowAndUpdateUI(zoom::ZoomController* zoom_controller, | 51 virtual void UpdateUI(zoom::ZoomController* zoom_controller, |
| 52 NSString* tooltip_string, | 52 NSString* tooltip_string, |
| 53 bool location_bar_is_dark); | 53 bool location_bar_is_dark); |
| 54 | 54 |
| 55 // Overridden from LocationBarDecoration: | 55 // Overridden from LocationBarDecoration: |
| 56 gfx::VectorIconId GetMaterialVectorIconId() const override; | 56 gfx::VectorIconId GetMaterialVectorIconId() const override; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 friend ZoomDecorationTest; | 59 friend ZoomDecorationTest; |
| 60 | 60 |
| 61 bool IsAtDefaultZoom() const; | 61 bool IsAtDefaultZoom() const; |
| 62 | 62 |
| 63 // Virtual for testing. | 63 // Virtual for testing. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 // The string to show for a tooltip. | 82 // The string to show for a tooltip. |
| 83 base::scoped_nsobject<NSString> tooltip_; | 83 base::scoped_nsobject<NSString> tooltip_; |
| 84 | 84 |
| 85 gfx::VectorIconId vector_icon_id_; | 85 gfx::VectorIconId vector_icon_id_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(ZoomDecoration); | 87 DISALLOW_COPY_AND_ASSIGN(ZoomDecoration); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ | 90 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ZOOM_DECORATION_H_ |
| OLD | NEW |