| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 public NotificationObserver { | 40 public NotificationObserver { |
| 41 public: | 41 public: |
| 42 LocationBarViewMac(AutocompleteTextField* field, | 42 LocationBarViewMac(AutocompleteTextField* field, |
| 43 CommandUpdater* command_updater, | 43 CommandUpdater* command_updater, |
| 44 ToolbarModel* toolbar_model, | 44 ToolbarModel* toolbar_model, |
| 45 Profile* profile, | 45 Profile* profile, |
| 46 Browser* browser); | 46 Browser* browser); |
| 47 virtual ~LocationBarViewMac(); | 47 virtual ~LocationBarViewMac(); |
| 48 | 48 |
| 49 // Overridden from LocationBar: | 49 // Overridden from LocationBar: |
| 50 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type) { | 50 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type); |
| 51 NOTIMPLEMENTED(); | |
| 52 } | |
| 53 virtual std::wstring GetInputString() const; | 51 virtual std::wstring GetInputString() const; |
| 54 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 52 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 55 virtual PageTransition::Type GetPageTransition() const; | 53 virtual PageTransition::Type GetPageTransition() const; |
| 56 virtual void AcceptInput(); | 54 virtual void AcceptInput(); |
| 57 virtual void FocusLocation(bool select_all); | 55 virtual void FocusLocation(bool select_all); |
| 58 virtual void FocusSearch(); | 56 virtual void FocusSearch(); |
| 59 virtual void UpdateContentSettingsIcons(); | 57 virtual void UpdateContentSettingsIcons(); |
| 60 virtual void UpdatePageActions(); | 58 virtual void UpdatePageActions(); |
| 61 virtual void InvalidatePageActions(); | 59 virtual void InvalidatePageActions(); |
| 62 virtual void SaveStateToContents(TabContents* contents); | 60 virtual void SaveStateToContents(TabContents* contents); |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // Sets the label for the SSL state. | 424 // Sets the label for the SSL state. |
| 427 void SetSecurityLabel(); | 425 void SetSecurityLabel(); |
| 428 | 426 |
| 429 // Posts |notification| to the default notification center. | 427 // Posts |notification| to the default notification center. |
| 430 void PostNotification(NSString* notification); | 428 void PostNotification(NSString* notification); |
| 431 | 429 |
| 432 // Updates visibility of the content settings icons based on the current | 430 // Updates visibility of the content settings icons based on the current |
| 433 // tab contents state. | 431 // tab contents state. |
| 434 void RefreshContentSettingsViews(); | 432 void RefreshContentSettingsViews(); |
| 435 | 433 |
| 434 void ShowFirstRunBubbleInternal(FirstRun::BubbleType bubble_type); |
| 435 |
| 436 scoped_ptr<AutocompleteEditViewMac> edit_view_; | 436 scoped_ptr<AutocompleteEditViewMac> edit_view_; |
| 437 | 437 |
| 438 CommandUpdater* command_updater_; // Weak, owned by Browser. | 438 CommandUpdater* command_updater_; // Weak, owned by Browser. |
| 439 | 439 |
| 440 AutocompleteTextField* field_; // owned by tab controller | 440 AutocompleteTextField* field_; // owned by tab controller |
| 441 | 441 |
| 442 // When we get an OnAutocompleteAccept notification from the autocomplete | 442 // When we get an OnAutocompleteAccept notification from the autocomplete |
| 443 // edit, we save the input string so we can give it back to the browser on | 443 // edit, we save the input string so we can give it back to the browser on |
| 444 // the LocationBar interface via GetInputString(). | 444 // the LocationBar interface via GetInputString(). |
| 445 std::wstring location_input_; | 445 std::wstring location_input_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 470 | 470 |
| 471 // Image used in drawing keyword hint. | 471 // Image used in drawing keyword hint. |
| 472 scoped_nsobject<NSImage> tab_button_image_; | 472 scoped_nsobject<NSImage> tab_button_image_; |
| 473 | 473 |
| 474 // The transition type to use for the navigation. | 474 // The transition type to use for the navigation. |
| 475 PageTransition::Type transition_; | 475 PageTransition::Type transition_; |
| 476 | 476 |
| 477 // Used to register for notifications received by NotificationObserver. | 477 // Used to register for notifications received by NotificationObserver. |
| 478 NotificationRegistrar registrar_; | 478 NotificationRegistrar registrar_; |
| 479 | 479 |
| 480 // Used to schedule a task for the first run info bubble. |
| 481 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; |
| 482 |
| 480 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 483 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 481 }; | 484 }; |
| 482 | 485 |
| 483 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 486 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |