| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEFAULT_SEARCH_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "views/window/dialog_delegate.h" | 12 #include "views/window/dialog_delegate.h" |
| 13 | 13 |
| 14 class PrefService; | 14 class PrefService; |
| 15 class Profile; | 15 class Profile; |
| 16 class TabContents; | 16 class TabContents; |
| 17 class TemplateURL; | 17 class TemplateURL; |
| 18 class TemplateURLService; | 18 class TemplateURLService; |
| 19 class ThemeService; | |
| 20 | 19 |
| 21 namespace gfx { | 20 namespace gfx { |
| 22 class Canvas; | 21 class Canvas; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace views { | 24 namespace views { |
| 26 class Button; | 25 class Button; |
| 27 class ImageView; | 26 class ImageView; |
| 28 class Label; | |
| 29 class View; | 27 class View; |
| 30 } | 28 } |
| 31 | 29 |
| 32 // Responsible for displaying the contents of the default search | 30 // Responsible for displaying the contents of the default search |
| 33 // prompt for when InstallSearchProvider(url, true) is called. | 31 // prompt for when InstallSearchProvider(url, true) is called. |
| 34 class DefaultSearchView : public views::View, | 32 class DefaultSearchView : public views::View, |
| 35 public views::ButtonListener, | 33 public views::ButtonListener, |
| 36 public views::DialogDelegate { | 34 public views::DialogDelegate { |
| 37 public: | 35 public: |
| 38 // Takes ownership of |proposed_default_turl|. | 36 // Takes ownership of |proposed_default_turl|. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 80 |
| 83 // The proposed new default search engine. | 81 // The proposed new default search engine. |
| 84 scoped_ptr<TemplateURL> proposed_turl_; | 82 scoped_ptr<TemplateURL> proposed_turl_; |
| 85 | 83 |
| 86 TemplateURLService* template_url_service_; | 84 TemplateURLService* template_url_service_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(DefaultSearchView); | 86 DISALLOW_COPY_AND_ASSIGN(DefaultSearchView); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 #endif // CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_DEFAULT_SEARCH_VIEW_H_ |
| OLD | NEW |