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/chromeos/set_wallpaper_options_handle
r2.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle
r2.h" |
6 | 6 |
7 #include "ash/desktop_background/desktop_background_controller.h" | 7 #include "ash/desktop_background/desktop_background_controller.h" |
8 #include "ash/desktop_background/desktop_background_resources.h" | 8 #include "ash/desktop_background/desktop_background_resources.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/chromeos/login/user_manager.h" | 17 #include "chrome/browser/chromeos/login/user_manager.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/browser_list.h" | 19 #include "chrome/browser/ui/browser_list.h" |
20 #include "chrome/browser/ui/browser_window.h" | 20 #include "chrome/browser/ui/browser_window.h" |
21 #include "chrome/browser/ui/views/window.h" | |
22 #include "chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.
h" | 21 #include "chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source2.
h" |
23 #include "chrome/common/chrome_notification_types.h" | 22 #include "chrome/common/chrome_notification_types.h" |
24 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
25 #include "content/public/browser/web_ui.h" | 24 #include "content/public/browser/web_ui.h" |
26 #include "grit/generated_resources.h" | 25 #include "grit/generated_resources.h" |
27 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
28 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
29 #include "ui/views/widget/widget.h" | 28 #include "ui/views/widget/widget.h" |
30 | 29 |
31 namespace chromeos { | 30 namespace chromeos { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 gfx::NativeWindow SetWallpaperOptionsHandler::GetBrowserWindow() const { | 113 gfx::NativeWindow SetWallpaperOptionsHandler::GetBrowserWindow() const { |
115 Browser* browser = | 114 Browser* browser = |
116 BrowserList::FindBrowserWithProfile(Profile::FromWebUI(web_ui())); | 115 BrowserList::FindBrowserWithProfile(Profile::FromWebUI(web_ui())); |
117 if (!browser) | 116 if (!browser) |
118 return NULL; | 117 return NULL; |
119 return browser->window()->GetNativeHandle(); | 118 return browser->window()->GetNativeHandle(); |
120 } | 119 } |
121 | 120 |
122 } // namespace options2 | 121 } // namespace options2 |
123 } // namespace chromeos | 122 } // namespace chromeos |
OLD | NEW |