| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 public: | 47 public: |
| 48 LocationBarViewMac(AutocompleteTextField* field, | 48 LocationBarViewMac(AutocompleteTextField* field, |
| 49 CommandUpdater* command_updater, | 49 CommandUpdater* command_updater, |
| 50 ToolbarModel* toolbar_model, | 50 ToolbarModel* toolbar_model, |
| 51 Profile* profile, | 51 Profile* profile, |
| 52 Browser* browser); | 52 Browser* browser); |
| 53 virtual ~LocationBarViewMac(); | 53 virtual ~LocationBarViewMac(); |
| 54 | 54 |
| 55 // Overridden from LocationBar: | 55 // Overridden from LocationBar: |
| 56 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type); | 56 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type); |
| 57 virtual void SetSuggestedText(const string16& text); |
| 57 virtual std::wstring GetInputString() const; | 58 virtual std::wstring GetInputString() const; |
| 58 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 59 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 59 virtual PageTransition::Type GetPageTransition() const; | 60 virtual PageTransition::Type GetPageTransition() const; |
| 60 virtual void AcceptInput(); | 61 virtual void AcceptInput(); |
| 61 virtual void FocusLocation(bool select_all); | 62 virtual void FocusLocation(bool select_all); |
| 62 virtual void FocusSearch(); | 63 virtual void FocusSearch(); |
| 63 virtual void UpdateContentSettingsIcons(); | 64 virtual void UpdateContentSettingsIcons(); |
| 64 virtual void UpdatePageActions(); | 65 virtual void UpdatePageActions(); |
| 65 virtual void InvalidatePageActions(); | 66 virtual void InvalidatePageActions(); |
| 66 virtual void SaveStateToContents(TabContents* contents); | 67 virtual void SaveStateToContents(TabContents* contents); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // Used to register for notifications received by NotificationObserver. | 211 // Used to register for notifications received by NotificationObserver. |
| 211 NotificationRegistrar registrar_; | 212 NotificationRegistrar registrar_; |
| 212 | 213 |
| 213 // Used to schedule a task for the first run info bubble. | 214 // Used to schedule a task for the first run info bubble. |
| 214 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; | 215 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; |
| 215 | 216 |
| 216 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 217 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 220 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |