| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/views/options/options_page_view.h" | 8 #include "chrome/browser/views/options/options_page_view.h" |
| 9 #include "chrome/browser/views/shelf_item_dialog.h" | 9 #include "chrome/browser/views/shelf_item_dialog.h" |
| 10 #include "chrome/common/pref_member.h" | 10 #include "chrome/common/pref_member.h" |
| 11 #include "chrome/views/controls/combo_box.h" | 11 #include "chrome/views/controls/combo_box.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual void ButtonPressed(views::Button* sender); | 44 virtual void ButtonPressed(views::Button* sender); |
| 45 | 45 |
| 46 // views::ComboBox::Listener implementation: | 46 // views::ComboBox::Listener implementation: |
| 47 virtual void ItemChanged(views::ComboBox* combo_box, | 47 virtual void ItemChanged(views::ComboBox* combo_box, |
| 48 int prev_index, | 48 int prev_index, |
| 49 int new_index); | 49 int new_index); |
| 50 | 50 |
| 51 // views::TextField::Controller implementation: | 51 // views::TextField::Controller implementation: |
| 52 virtual void ContentsChanged(views::TextField* sender, | 52 virtual void ContentsChanged(views::TextField* sender, |
| 53 const std::wstring& new_contents); | 53 const std::wstring& new_contents); |
| 54 virtual void HandleKeystroke(views::TextField* sender, | 54 virtual bool HandleKeystroke(views::TextField* sender, |
| 55 UINT message, TCHAR key, UINT repeat_count, | 55 UINT message, TCHAR key, UINT repeat_count, |
| 56 UINT flags); | 56 UINT flags); |
| 57 | 57 |
| 58 // OptionsPageView implementation: | 58 // OptionsPageView implementation: |
| 59 virtual void InitControlLayout(); | 59 virtual void InitControlLayout(); |
| 60 virtual void NotifyPrefChanged(const std::wstring* pref_name); | 60 virtual void NotifyPrefChanged(const std::wstring* pref_name); |
| 61 virtual void HighlightGroup(OptionsGroup highlight_group); | 61 virtual void HighlightGroup(OptionsGroup highlight_group); |
| 62 | 62 |
| 63 // views::View overrides: | 63 // views::View overrides: |
| 64 virtual void Layout(); | 64 virtual void Layout(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // Controls for the Default Browser group | 148 // Controls for the Default Browser group |
| 149 OptionsGroupView* default_browser_group_; | 149 OptionsGroupView* default_browser_group_; |
| 150 views::Label* default_browser_status_label_; | 150 views::Label* default_browser_status_label_; |
| 151 views::NativeButton* default_browser_use_as_default_button_; | 151 views::NativeButton* default_browser_use_as_default_button_; |
| 152 | 152 |
| 153 // The helper object that performs default browser set/check tasks. | 153 // The helper object that performs default browser set/check tasks. |
| 154 class DefaultBrowserWorker; | 154 class DefaultBrowserWorker; |
| 155 friend DefaultBrowserWorker; | 155 friend DefaultBrowserWorker; |
| 156 scoped_refptr<DefaultBrowserWorker> default_browser_worker_; | 156 scoped_refptr<DefaultBrowserWorker> default_browser_worker_; |
| 157 | 157 |
| 158 DISALLOW_EVIL_CONSTRUCTORS(GeneralPageView); | 158 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 #endif // CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 161 #endif // CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
| OLD | NEW |