| 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_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 public content::NotificationObserver { | 83 public content::NotificationObserver { |
| 84 public: | 84 public: |
| 85 // The location bar view's class name. | 85 // The location bar view's class name. |
| 86 static const char kViewClassName[]; | 86 static const char kViewClassName[]; |
| 87 | 87 |
| 88 // DropdownBarHostDelegate | 88 // DropdownBarHostDelegate |
| 89 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; | 89 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; |
| 90 virtual void SetAnimationOffset(int offset) OVERRIDE; | 90 virtual void SetAnimationOffset(int offset) OVERRIDE; |
| 91 | 91 |
| 92 // chrome::search::SearchModelObserver: | 92 // chrome::search::SearchModelObserver: |
| 93 virtual void ModeChanged(const chrome::search::Mode& mode) OVERRIDE; | 93 virtual void ModeChanged(const chrome::search::Mode& old_mode, |
| 94 const chrome::search::Mode& new_mode) OVERRIDE; |
| 94 | 95 |
| 95 // Returns the offset used while animating. | 96 // Returns the offset used while animating. |
| 96 int animation_offset() const { return animation_offset_; } | 97 int animation_offset() const { return animation_offset_; } |
| 97 | 98 |
| 98 class Delegate { | 99 class Delegate { |
| 99 public: | 100 public: |
| 100 // Should return the current tab contents. | 101 // Should return the current tab contents. |
| 101 virtual TabContents* GetTabContents() const = 0; | 102 virtual TabContents* GetTabContents() const = 0; |
| 102 | 103 |
| 103 // Returns the InstantController, or NULL if there isn't one. | 104 // Returns the InstantController, or NULL if there isn't one. |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 | 563 |
| 563 #if defined(USE_AURA) | 564 #if defined(USE_AURA) |
| 564 // Observer for a fade-in animation. | 565 // Observer for a fade-in animation. |
| 565 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; | 566 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; |
| 566 #endif | 567 #endif |
| 567 | 568 |
| 568 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 569 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 569 }; | 570 }; |
| 570 | 571 |
| 571 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 572 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |