| 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 17 matching lines...) Expand all Loading... |
| 28 class CommandUpdater; | 28 class CommandUpdater; |
| 29 class ContentSettingDecoration; | 29 class ContentSettingDecoration; |
| 30 class EVBubbleDecoration; | 30 class EVBubbleDecoration; |
| 31 class KeywordHintDecoration; | 31 class KeywordHintDecoration; |
| 32 class LocationBarDecoration; | 32 class LocationBarDecoration; |
| 33 class LocationIconDecoration; | 33 class LocationIconDecoration; |
| 34 class PageActionDecoration; | 34 class PageActionDecoration; |
| 35 class PlusDecoration; | 35 class PlusDecoration; |
| 36 class Profile; | 36 class Profile; |
| 37 class SelectedKeywordDecoration; | 37 class SelectedKeywordDecoration; |
| 38 class SkBitmap; | |
| 39 class StarDecoration; | 38 class StarDecoration; |
| 40 class ToolbarModel; | 39 class ToolbarModel; |
| 41 | 40 |
| 42 // A C++ bridge class that represents the location bar UI element to | 41 // A C++ bridge class that represents the location bar UI element to |
| 43 // the portable code. Wires up an OmniboxViewMac instance to | 42 // the portable code. Wires up an OmniboxViewMac instance to |
| 44 // the location bar text field, which handles most of the work. | 43 // the location bar text field, which handles most of the work. |
| 45 | 44 |
| 46 class LocationBarViewMac : public LocationBar, | 45 class LocationBarViewMac : public LocationBar, |
| 47 public LocationBarTesting, | 46 public LocationBarTesting, |
| 48 public OmniboxEditController, | 47 public OmniboxEditController, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual void OnAutocompleteAccept( | 141 virtual void OnAutocompleteAccept( |
| 143 const GURL& url, | 142 const GURL& url, |
| 144 WindowOpenDisposition disposition, | 143 WindowOpenDisposition disposition, |
| 145 content::PageTransition transition, | 144 content::PageTransition transition, |
| 146 const GURL& alternate_nav_url) OVERRIDE; | 145 const GURL& alternate_nav_url) OVERRIDE; |
| 147 virtual void OnChanged() OVERRIDE; | 146 virtual void OnChanged() OVERRIDE; |
| 148 virtual void OnSelectionBoundsChanged() OVERRIDE; | 147 virtual void OnSelectionBoundsChanged() OVERRIDE; |
| 149 virtual void OnInputInProgress(bool in_progress) OVERRIDE; | 148 virtual void OnInputInProgress(bool in_progress) OVERRIDE; |
| 150 virtual void OnKillFocus() OVERRIDE; | 149 virtual void OnKillFocus() OVERRIDE; |
| 151 virtual void OnSetFocus() OVERRIDE; | 150 virtual void OnSetFocus() OVERRIDE; |
| 152 virtual SkBitmap GetFavicon() const OVERRIDE; | 151 virtual gfx::Image GetFavicon() const OVERRIDE; |
| 153 virtual string16 GetTitle() const OVERRIDE; | 152 virtual string16 GetTitle() const OVERRIDE; |
| 154 virtual InstantController* GetInstant() OVERRIDE; | 153 virtual InstantController* GetInstant() OVERRIDE; |
| 155 virtual TabContents* GetTabContents() const OVERRIDE; | 154 virtual TabContents* GetTabContents() const OVERRIDE; |
| 156 | 155 |
| 157 NSImage* GetKeywordImage(const string16& keyword); | 156 NSImage* GetKeywordImage(const string16& keyword); |
| 158 | 157 |
| 159 AutocompleteTextField* GetAutocompleteTextField() { return field_; } | 158 AutocompleteTextField* GetAutocompleteTextField() { return field_; } |
| 160 | 159 |
| 161 | 160 |
| 162 // content::NotificationObserver: | 161 // content::NotificationObserver: |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // Used to schedule a task for the first run info bubble. | 252 // Used to schedule a task for the first run info bubble. |
| 254 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 253 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 255 | 254 |
| 256 // Used to change the visibility of the star decoration. | 255 // Used to change the visibility of the star decoration. |
| 257 BooleanPrefMember edit_bookmarks_enabled_; | 256 BooleanPrefMember edit_bookmarks_enabled_; |
| 258 | 257 |
| 259 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 258 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 260 }; | 259 }; |
| 261 | 260 |
| 262 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 261 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |