OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_OPTIONS_GENERAL_PAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/prefs/pref_change_registrar.h" | 9 #include "chrome/browser/prefs/pref_change_registrar.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 51 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
52 | 52 |
53 // views::Combobox::Listener implementation: | 53 // views::Combobox::Listener implementation: |
54 virtual void ItemChanged(views::Combobox* combobox, | 54 virtual void ItemChanged(views::Combobox* combobox, |
55 int prev_index, | 55 int prev_index, |
56 int new_index); | 56 int new_index); |
57 | 57 |
58 // views::Textfield::Controller implementation: | 58 // views::Textfield::Controller implementation: |
59 virtual void ContentsChanged(views::Textfield* sender, | 59 virtual void ContentsChanged(views::Textfield* sender, |
60 const std::wstring& new_contents); | 60 const std::wstring& new_contents); |
61 virtual bool HandleKeystroke(views::Textfield* sender, | 61 virtual bool HandleKeyEvent(views::Textfield* sender, |
62 const views::Textfield::Keystroke& key); | 62 const views::KeyEvent& key_event); |
63 | 63 |
64 // OptionsPageView implementation: | 64 // OptionsPageView implementation: |
65 virtual void InitControlLayout(); | 65 virtual void InitControlLayout(); |
66 virtual void NotifyPrefChanged(const std::string* pref_name); | 66 virtual void NotifyPrefChanged(const std::string* pref_name); |
67 virtual void HighlightGroup(OptionsGroup highlight_group); | 67 virtual void HighlightGroup(OptionsGroup highlight_group); |
68 | 68 |
69 // LinkController implementation: | 69 // LinkController implementation: |
70 virtual void LinkActivated(views::Link* source, int event_flags); | 70 virtual void LinkActivated(views::Link* source, int event_flags); |
71 | 71 |
72 private: | 72 private: |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // The helper object that performs default browser set/check tasks. | 164 // The helper object that performs default browser set/check tasks. |
165 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 165 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
166 | 166 |
167 PrefChangeRegistrar registrar_; | 167 PrefChangeRegistrar registrar_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); | 169 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); |
170 }; | 170 }; |
171 | 171 |
172 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 172 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
OLD | NEW |