| 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_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/pref_member.h" | 8 #include "chrome/browser/pref_member.h" |
| 9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
| 10 #include "chrome/browser/views/options/options_page_view.h" | 10 #include "chrome/browser/views/options/options_page_view.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void ContentsChanged(views::Textfield* sender, | 55 virtual void ContentsChanged(views::Textfield* sender, |
| 56 const std::wstring& new_contents); | 56 const std::wstring& new_contents); |
| 57 virtual bool HandleKeystroke(views::Textfield* sender, | 57 virtual bool HandleKeystroke(views::Textfield* sender, |
| 58 const views::Textfield::Keystroke& key); | 58 const views::Textfield::Keystroke& key); |
| 59 | 59 |
| 60 // OptionsPageView implementation: | 60 // OptionsPageView implementation: |
| 61 virtual void InitControlLayout(); | 61 virtual void InitControlLayout(); |
| 62 virtual void NotifyPrefChanged(const std::wstring* pref_name); | 62 virtual void NotifyPrefChanged(const std::wstring* pref_name); |
| 63 virtual void HighlightGroup(OptionsGroup highlight_group); | 63 virtual void HighlightGroup(OptionsGroup highlight_group); |
| 64 | 64 |
| 65 // views::View overrides: | |
| 66 virtual void Layout(); | |
| 67 | |
| 68 private: | 65 private: |
| 69 // ShellIntegration::DefaultBrowserObserver implementation: | 66 // ShellIntegration::DefaultBrowserObserver implementation: |
| 70 // Updates the UI state to reflect the current default browser state. | 67 // Updates the UI state to reflect the current default browser state. |
| 71 virtual void SetDefaultBrowserUIState( | 68 virtual void SetDefaultBrowserUIState( |
| 72 ShellIntegration::DefaultBrowserUIState state); | 69 ShellIntegration::DefaultBrowserUIState state); |
| 73 | 70 |
| 74 // For Side by Side installs, this will disable the Default Browser setting | 71 // For Side by Side installs, this will disable the Default Browser setting |
| 75 // and display an explanitory message. | 72 // and display an explanitory message. |
| 76 void SetDefaultBrowserUIStateForSxS(); | 73 void SetDefaultBrowserUIStateForSxS(); |
| 77 | 74 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 views::Label* default_browser_status_label_; | 148 views::Label* default_browser_status_label_; |
| 152 views::NativeButton* default_browser_use_as_default_button_; | 149 views::NativeButton* default_browser_use_as_default_button_; |
| 153 | 150 |
| 154 // The helper object that performs default browser set/check tasks. | 151 // The helper object that performs default browser set/check tasks. |
| 155 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 152 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
| 156 | 153 |
| 157 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); | 154 DISALLOW_COPY_AND_ASSIGN(GeneralPageView); |
| 158 }; | 155 }; |
| 159 | 156 |
| 160 #endif // CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ | 157 #endif // CHROME_BROWSER_VIEWS_OPTIONS_GENERAL_PAGE_VIEW_H_ |
| OLD | NEW |