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_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 | 26 |
27 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
28 namespace chromeos { | 28 namespace chromeos { |
29 namespace system { | 29 namespace system { |
30 class PointerDeviceObserver; | 30 class PointerDeviceObserver; |
31 } // namespace system | 31 } // namespace system |
32 } // namespace chromeos | 32 } // namespace chromeos |
33 #endif | 33 #endif |
34 | 34 |
35 namespace options2 { | 35 namespace options { |
36 | 36 |
37 // The base class handler of Javascript messages of options pages. | 37 // The base class handler of Javascript messages of options pages. |
38 class OptionsPageUIHandler : public content::WebUIMessageHandler, | 38 class OptionsPageUIHandler : public content::WebUIMessageHandler, |
39 public content::NotificationObserver { | 39 public content::NotificationObserver { |
40 public: | 40 public: |
41 OptionsPageUIHandler(); | 41 OptionsPageUIHandler(); |
42 virtual ~OptionsPageUIHandler(); | 42 virtual ~OptionsPageUIHandler(); |
43 | 43 |
44 // Is this handler enabled? | 44 // Is this handler enabled? |
45 virtual bool IsEnabled(); | 45 virtual bool IsEnabled(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 std::vector<OptionsPageUIHandler*> handlers_; | 129 std::vector<OptionsPageUIHandler*> handlers_; |
130 | 130 |
131 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
132 scoped_ptr<chromeos::system::PointerDeviceObserver> | 132 scoped_ptr<chromeos::system::PointerDeviceObserver> |
133 pointer_device_observer_; | 133 pointer_device_observer_; |
134 #endif | 134 #endif |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 136 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace options2 | 139 } // namespace options |
140 | 140 |
141 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_ | 141 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI_H_ |
OLD | NEW |