Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/views/options/general_page_view.h

Issue 2812026: Auto-size the views version of the options dialog. (Closed)
Patch Set: Fix autosizing issue with gtk pref pages in chromeos options dialog. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/views/options/content_page_view.cc ('k') | chrome/browser/views/options/general_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698