| 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_LOCATION_BAR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Set the starred state of the bookmark star. | 89 // Set the starred state of the bookmark star. |
| 90 void SetStarred(bool starred); | 90 void SetStarred(bool starred); |
| 91 | 91 |
| 92 // Set whether or not the translate icon is lit. | 92 // Set whether or not the translate icon is lit. |
| 93 void SetTranslateIconLit(bool on); | 93 void SetTranslateIconLit(bool on); |
| 94 | 94 |
| 95 // Happens when the zoom changes for the active tab. |can_show_bubble| is | 95 // Happens when the zoom changes for the active tab. |can_show_bubble| is |
| 96 // false when the change in zoom for the active tab wasn't an explicit user | 96 // false when the change in zoom for the active tab wasn't an explicit user |
| 97 // action (e.g. switching tabs, creating a new tab, creating a new browser). | 97 // action (e.g. switching tabs, creating a new tab, creating a new browser). |
| 98 // Additionally, |can_show_bubble| will only be true when the bubble wouldn't | 98 // Additionally, |can_show_bubble| will only be true when the bubble wouldn't |
| 99 // be obscured by other UI (wrench menu) or redundant (+/- from wrench). | 99 // be obscured by other UI (app menu) or redundant (+/- from app menu). |
| 100 void ZoomChangedForActiveTab(bool can_show_bubble); | 100 void ZoomChangedForActiveTab(bool can_show_bubble); |
| 101 | 101 |
| 102 // Checks if the bookmark star should be enabled or not. | 102 // Checks if the bookmark star should be enabled or not. |
| 103 bool IsStarEnabled() const; | 103 bool IsStarEnabled() const; |
| 104 | 104 |
| 105 // Get the point in window coordinates on the star for the bookmark bubble to | 105 // Get the point in window coordinates on the star for the bookmark bubble to |
| 106 // aim at. Only works if IsStarEnabled returns YES. | 106 // aim at. Only works if IsStarEnabled returns YES. |
| 107 NSPoint GetBookmarkBubblePoint() const; | 107 NSPoint GetBookmarkBubblePoint() const; |
| 108 | 108 |
| 109 // Get the point in window coordinates on the star for the Translate bubble to | 109 // Get the point in window coordinates on the star for the Translate bubble to |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // Indicates whether or not the location bar is currently visible. | 256 // Indicates whether or not the location bar is currently visible. |
| 257 bool location_bar_visible_; | 257 bool location_bar_visible_; |
| 258 | 258 |
| 259 // Used to schedule a task for the first run info bubble. | 259 // Used to schedule a task for the first run info bubble. |
| 260 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 260 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 261 | 261 |
| 262 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 262 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 265 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |