OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_ADVANCED_PAGE_VIEW_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_ADVANCED_PAGE_VIEW_H_ | |
7 #pragma once | |
8 | |
9 #include "chrome/browser/ui/views/options/options_page_view.h" | |
10 #include "views/controls/button/button.h" | |
11 | |
12 class AdvancedOptionsListModel; | |
13 class AdvancedScrollViewContainer; | |
14 class PrefService; | |
15 namespace views { | |
16 class NativeButton; | |
17 } | |
18 | |
19 /////////////////////////////////////////////////////////////////////////////// | |
20 // AdvancedPageView | |
21 | |
22 class AdvancedPageView : public OptionsPageView, | |
23 public views::ButtonListener { | |
24 public: | |
25 explicit AdvancedPageView(Profile* profile); | |
26 virtual ~AdvancedPageView(); | |
27 | |
28 // Resets all prefs to their default values. | |
29 void ResetToDefaults(); | |
30 | |
31 // views::ButtonListener implementation: | |
32 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | |
33 | |
34 protected: | |
35 // OptionsPageView implementation: | |
36 virtual void InitControlLayout(); | |
37 | |
38 private: | |
39 // Controls for the Advanced page | |
40 AdvancedScrollViewContainer* advanced_scroll_view_; | |
41 views::NativeButton* reset_to_default_button_; | |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(AdvancedPageView); | |
44 }; | |
45 | |
46 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_ADVANCED_PAGE_VIEW_H_ | |
OLD | NEW |