OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual void TouchpadExists(bool exists) OVERRIDE; | 81 virtual void TouchpadExists(bool exists) OVERRIDE; |
82 virtual void MouseExists(bool exists) OVERRIDE; | 82 virtual void MouseExists(bool exists) OVERRIDE; |
83 #endif | 83 #endif |
84 | 84 |
85 // Makes this the default browser. Called from WebUI. | 85 // Makes this the default browser. Called from WebUI. |
86 void BecomeDefaultBrowser(const base::ListValue* args); | 86 void BecomeDefaultBrowser(const base::ListValue* args); |
87 | 87 |
88 // Sets the search engine at the given index to be default. Called from WebUI. | 88 // Sets the search engine at the given index to be default. Called from WebUI. |
89 void SetDefaultSearchEngine(const base::ListValue* args); | 89 void SetDefaultSearchEngine(const base::ListValue* args); |
90 | 90 |
91 // Enables/disables Instant. | |
92 void EnableInstant(const base::ListValue* args); | |
93 void DisableInstant(const base::ListValue* args); | |
94 | |
95 // Enables/disables auto-launching of Chrome on computer startup. | 91 // Enables/disables auto-launching of Chrome on computer startup. |
96 void ToggleAutoLaunch(const base::ListValue* args); | 92 void ToggleAutoLaunch(const base::ListValue* args); |
97 | 93 |
98 // Checks (on the file thread) whether the user is in the auto-launch trial | 94 // Checks (on the file thread) whether the user is in the auto-launch trial |
99 // and whether Chrome is set to auto-launch at login. Gets a reply on the UI | 95 // and whether Chrome is set to auto-launch at login. Gets a reply on the UI |
100 // thread (see CheckAutoLaunchCallback). A weak pointer to this is passed in | 96 // thread (see CheckAutoLaunchCallback). A weak pointer to this is passed in |
101 // as a parameter to avoid the need to lock between this function and the | 97 // as a parameter to avoid the need to lock between this function and the |
102 // destructor. |profile_path| is the full path to the current profile. | 98 // destructor. |profile_path| is the full path to the current profile. |
103 void CheckAutoLaunch(base::WeakPtr<BrowserOptionsHandler> weak_this, | 99 void CheckAutoLaunch(base::WeakPtr<BrowserOptionsHandler> weak_this, |
104 const FilePath& profile_path); | 100 const FilePath& profile_path); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 #if !defined(OS_CHROMEOS) | 317 #if !defined(OS_CHROMEOS) |
322 scoped_ptr<PrefSetObserver> proxy_prefs_; | 318 scoped_ptr<PrefSetObserver> proxy_prefs_; |
323 #endif // !defined(OS_CHROMEOS) | 319 #endif // !defined(OS_CHROMEOS) |
324 | 320 |
325 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 321 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
326 }; | 322 }; |
327 | 323 |
328 } // namespace options2 | 324 } // namespace options2 |
329 | 325 |
330 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ | 326 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |