| 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 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 // Returns true if |level| is SECURE or EV_SECURE. | 232 // Returns true if |level| is SECURE or EV_SECURE. |
| 233 bool IsSecureConnection(security_state::SecurityLevel level) const; | 233 bool IsSecureConnection(security_state::SecurityLevel level) const; |
| 234 | 234 |
| 235 // Returns pointers to all of the LocationBarDecorations owned by this | 235 // Returns pointers to all of the LocationBarDecorations owned by this |
| 236 // LocationBarViewMac. This helper function is used for positioning and | 236 // LocationBarViewMac. This helper function is used for positioning and |
| 237 // re-positioning accessibility views. | 237 // re-positioning accessibility views. |
| 238 std::vector<LocationBarDecoration*> GetDecorations(); | 238 std::vector<LocationBarDecoration*> GetDecorations(); |
| 239 | 239 |
| 240 // Updates |decoration|'s accessibility view's position to match the computed | 240 // Updates |decoration|'s accessibility view's position to match the computed |
| 241 // position the decoration will be drawn at. | 241 // position the decoration will be drawn at, and update its enabled state |
| 242 void UpdateAccessibilityViewPosition(LocationBarDecoration* decoration); | 242 // based on whether |decoration| is accepting presses currently. |
| 243 void UpdateAccessibilityView(LocationBarDecoration* decoration); |
| 243 | 244 |
| 244 std::unique_ptr<OmniboxViewMac> omnibox_view_; | 245 std::unique_ptr<OmniboxViewMac> omnibox_view_; |
| 245 | 246 |
| 246 AutocompleteTextField* field_; // owned by tab controller | 247 AutocompleteTextField* field_; // owned by tab controller |
| 247 | 248 |
| 248 // A decoration that shows an icon to the left of the address. | 249 // A decoration that shows an icon to the left of the address. |
| 249 std::unique_ptr<LocationIconDecoration> location_icon_decoration_; | 250 std::unique_ptr<LocationIconDecoration> location_icon_decoration_; |
| 250 | 251 |
| 251 // A decoration that shows the keyword-search bubble on the left. | 252 // A decoration that shows the keyword-search bubble on the left. |
| 252 std::unique_ptr<SelectedKeywordDecoration> selected_keyword_decoration_; | 253 std::unique_ptr<SelectedKeywordDecoration> selected_keyword_decoration_; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // The security level of the location bar icon. | 295 // The security level of the location bar icon. |
| 295 security_state::SecurityLevel security_level_; | 296 security_state::SecurityLevel security_level_; |
| 296 | 297 |
| 297 // Used to schedule a task for the first run info bubble. | 298 // Used to schedule a task for the first run info bubble. |
| 298 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 299 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 299 | 300 |
| 300 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 301 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 304 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |