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 #include "chrome/browser/ui/webui/options2/options_ui.h" | 5 #include "chrome/browser/ui/webui/options2/options_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "content/public/browser/notification_types.h" | 49 #include "content/public/browser/notification_types.h" |
50 #include "content/public/browser/render_view_host.h" | 50 #include "content/public/browser/render_view_host.h" |
51 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
52 #include "content/public/browser/web_contents_delegate.h" | 52 #include "content/public/browser/web_contents_delegate.h" |
53 #include "content/public/browser/web_ui.h" | 53 #include "content/public/browser/web_ui.h" |
54 #include "grit/chromium_strings.h" | 54 #include "grit/chromium_strings.h" |
55 #include "grit/generated_resources.h" | 55 #include "grit/generated_resources.h" |
56 #include "grit/locale_settings.h" | 56 #include "grit/locale_settings.h" |
57 #include "grit/options2_resources.h" | 57 #include "grit/options2_resources.h" |
58 #include "grit/theme_resources.h" | 58 #include "grit/theme_resources.h" |
59 #include "grit/theme_resources_standard.h" | |
60 #include "net/base/escape.h" | 59 #include "net/base/escape.h" |
61 #include "ui/base/layout.h" | 60 #include "ui/base/layout.h" |
62 #include "ui/base/resource/resource_bundle.h" | 61 #include "ui/base/resource/resource_bundle.h" |
63 | 62 |
64 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
65 #include "chrome/browser/chromeos/system/pointer_device_observer.h" | 64 #include "chrome/browser/chromeos/system/pointer_device_observer.h" |
66 #include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h" | 65 #include "chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h" |
67 #include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h" | 66 #include "chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler.h" |
68 #include "chrome/browser/ui/webui/options2/chromeos/change_picture_options_handl
er.h" | 67 #include "chrome/browser/ui/webui/options2/chromeos/change_picture_options_handl
er.h" |
69 #include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handle
r.h" | 68 #include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handle
r.h" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // Add only if handler's service is enabled. | 387 // Add only if handler's service is enabled. |
389 if (handler->IsEnabled()) { | 388 if (handler->IsEnabled()) { |
390 // Add handler to the list and also pass the ownership. | 389 // Add handler to the list and also pass the ownership. |
391 web_ui()->AddMessageHandler(handler.release()); | 390 web_ui()->AddMessageHandler(handler.release()); |
392 handler_raw->GetLocalizedValues(localized_strings); | 391 handler_raw->GetLocalizedValues(localized_strings); |
393 handlers_.push_back(handler_raw); | 392 handlers_.push_back(handler_raw); |
394 } | 393 } |
395 } | 394 } |
396 | 395 |
397 } // namespace options2 | 396 } // namespace options2 |
OLD | NEW |