| 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_SEARCH_SEARCH_MODEL_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace chrome { | 8 namespace chrome { |
| 9 namespace search { | 9 namespace search { |
| 10 | 10 |
| 11 struct Mode; | 11 struct Mode; |
| 12 | 12 |
| 13 // This class defines the observer interface for the |SearchModel|. | 13 // This class defines the observer interface for the |SearchModel|. |
| 14 class SearchModelObserver { | 14 class SearchModelObserver { |
| 15 public: | 15 public: |
| 16 // Informs the observer that the mode has changed. | 16 // Informs the observer that the mode has changed. |
| 17 virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) = 0; | 17 virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) = 0; |
| 18 | 18 |
| 19 // Informs the observer that the visibility of top bars (bookmark and info |
| 20 // bars) has changed. |
| 21 virtual void TopBarsVisibilityChanged(const Mode& mode, bool visible) = 0; |
| 22 |
| 19 protected: | 23 protected: |
| 20 virtual ~SearchModelObserver() {} | 24 virtual ~SearchModelObserver() {} |
| 21 }; | 25 }; |
| 22 | 26 |
| 23 } // namespace search | 27 } // namespace search |
| 24 } // namespace chrome | 28 } // namespace chrome |
| 25 | 29 |
| 26 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ | 30 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ |
| OLD | NEW |