| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 void OnAddedToWindow(); | 171 void OnAddedToWindow(); |
| 172 | 172 |
| 173 // Notify the location bar that the browser window theme has changed. Provides | 173 // Notify the location bar that the browser window theme has changed. Provides |
| 174 // an update point for interface objects that need to set their appearance | 174 // an update point for interface objects that need to set their appearance |
| 175 // based on the window's theme. | 175 // based on the window's theme. |
| 176 void OnThemeChanged(); | 176 void OnThemeChanged(); |
| 177 | 177 |
| 178 // ChromeOmniboxEditController: | 178 // ChromeOmniboxEditController: |
| 179 void UpdateWithoutTabRestore() override; | 179 void UpdateWithoutTabRestore() override; |
| 180 void OnChanged() override; | 180 void OnChanged() override; |
| 181 void OnSetFocus() override; | |
| 182 void ShowURL() override; | 181 void ShowURL() override; |
| 183 ToolbarModel* GetToolbarModel() override; | 182 ToolbarModel* GetToolbarModel() override; |
| 184 const ToolbarModel* GetToolbarModel() const override; | 183 const ToolbarModel* GetToolbarModel() const override; |
| 185 content::WebContents* GetWebContents() override; | 184 content::WebContents* GetWebContents() override; |
| 186 | 185 |
| 187 bool ShouldShowEVBubble() const; | 186 bool ShouldShowEVBubble() const; |
| 188 NSImage* GetKeywordImage(const base::string16& keyword); | 187 NSImage* GetKeywordImage(const base::string16& keyword); |
| 189 | 188 |
| 190 AutocompleteTextField* GetAutocompleteTextField() { return field_; } | 189 AutocompleteTextField* GetAutocompleteTextField() { return field_; } |
| 191 | 190 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // Indicates whether or not the location bar is currently visible. | 285 // Indicates whether or not the location bar is currently visible. |
| 287 bool location_bar_visible_; | 286 bool location_bar_visible_; |
| 288 | 287 |
| 289 // Used to schedule a task for the first run info bubble. | 288 // Used to schedule a task for the first run info bubble. |
| 290 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 289 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 291 | 290 |
| 292 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 291 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 293 }; | 292 }; |
| 294 | 293 |
| 295 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 294 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |