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