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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler.cc

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
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 r.h" 5 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r.h"
6 6
7 #include "ash/desktop_background/desktop_background_controller.h" 7 #include "ash/desktop_background/desktop_background_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h " 21 #include "chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h "
22 #include "chrome/browser/ui/webui/web_ui_util.h" 22 #include "chrome/browser/ui/webui/web_ui_util.h"
23 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
24 #include "content/public/browser/web_ui.h" 24 #include "content/public/browser/web_ui.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "ui/base/l10n/l10n_util.h" 26 #include "ui/base/l10n/l10n_util.h"
27 #include "ui/base/resource/resource_bundle.h" 27 #include "ui/base/resource/resource_bundle.h"
28 #include "ui/views/widget/widget.h" 28 #include "ui/views/widget/widget.h"
29 29
30 namespace chromeos { 30 namespace chromeos {
31 namespace options2 { 31 namespace options {
32 32
33 namespace { 33 namespace {
34 34
35 // Returns info about extensions for files we support as wallpaper images. 35 // Returns info about extensions for files we support as wallpaper images.
36 ui::SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() { 36 ui::SelectFileDialog::FileTypeInfo GetUserImageFileTypeInfo() {
37 ui::SelectFileDialog::FileTypeInfo file_type_info; 37 ui::SelectFileDialog::FileTypeInfo file_type_info;
38 file_type_info.extensions.resize(1); 38 file_type_info.extensions.resize(1);
39 39
40 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpg")); 40 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpg"));
41 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpeg")); 41 file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("jpeg"));
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 web_ui()->CallJavascriptFunction("SetWallpaperOptions.setSelectedImage", 254 web_ui()->CallJavascriptFunction("SetWallpaperOptions.setSelectedImage",
255 image_url, is_daily); 255 image_url, is_daily);
256 } 256 }
257 257
258 gfx::NativeWindow SetWallpaperOptionsHandler::GetBrowserWindow() const { 258 gfx::NativeWindow SetWallpaperOptionsHandler::GetBrowserWindow() const {
259 Browser* browser = 259 Browser* browser =
260 browser::FindBrowserWithWebContents(web_ui()->GetWebContents()); 260 browser::FindBrowserWithWebContents(web_ui()->GetWebContents());
261 return browser->window()->GetNativeWindow(); 261 return browser->window()->GetNativeWindow();
262 } 262 }
263 263
264 } // namespace options2 264 } // namespace options
265 } // namespace chromeos 265 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698