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

Side by Side Diff: chrome/browser/ui/views/apps/native_app_window_views.cc

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/views/apps/native_app_window_views.h" 5 #include "chrome/browser/ui/views/apps/native_app_window_views.h"
6 6
7 #include "apps/shell_window.h" 7 #include "apps/shell_window.h"
8 #include "apps/ui/views/shell_window_frame_view.h" 8 #include "apps/ui/views/shell_window_frame_view.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 base::FilePath chrome_exe; 120 base::FilePath chrome_exe;
121 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) { 121 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) {
122 NOTREACHED(); 122 NOTREACHED();
123 return; 123 return;
124 } 124 }
125 command_line.SetProgram(chrome_exe); 125 command_line.SetProgram(chrome_exe);
126 ui::win::SetRelaunchDetailsForWindow(command_line.GetCommandLineString(), 126 ui::win::SetRelaunchDetailsForWindow(command_line.GetCommandLineString(),
127 shortcut_info.title, hwnd); 127 shortcut_info.title, hwnd);
128 128
129 if (!base::PathExists(web_app_path) && 129 if (!base::PathExists(web_app_path) &&
130 !file_util::CreateDirectory(web_app_path)) 130 !base::CreateDirectory(web_app_path))
131 return; 131 return;
132 132
133 ui::win::SetAppIconForWindow(icon_file.value(), hwnd); 133 ui::win::SetAppIconForWindow(icon_file.value(), hwnd);
134 web_app::internals::CheckAndSaveIcon(icon_file, shortcut_info.favicon); 134 web_app::internals::CheckAndSaveIcon(icon_file, shortcut_info.favicon);
135 } 135 }
136 #endif 136 #endif
137 137
138 #if defined(USE_ASH) 138 #if defined(USE_ASH)
139 // This class handles a user's fullscreen request (Shift+F4/F4). 139 // This class handles a user's fullscreen request (Shift+F4/F4).
140 class NativeAppWindowStateDelegate : public ash::wm::WindowStateDelegate, 140 class NativeAppWindowStateDelegate : public ash::wm::WindowStateDelegate,
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 gfx::Rect client_bounds = gfx::Rect(1000, 1000); 1003 gfx::Rect client_bounds = gfx::Rect(1000, 1000);
1004 gfx::Rect window_bounds = 1004 gfx::Rect window_bounds =
1005 window_->non_client_view()->GetWindowBoundsForClientBounds( 1005 window_->non_client_view()->GetWindowBoundsForClientBounds(
1006 client_bounds); 1006 client_bounds);
1007 return window_bounds.InsetsFrom(client_bounds); 1007 return window_bounds.InsetsFrom(client_bounds);
1008 } 1008 }
1009 1009
1010 void NativeAppWindowViews::HideWithApp() {} 1010 void NativeAppWindowViews::HideWithApp() {}
1011 void NativeAppWindowViews::ShowWithApp() {} 1011 void NativeAppWindowViews::ShowWithApp() {}
1012 void NativeAppWindowViews::UpdateWindowMinMaxSize() {} 1012 void NativeAppWindowViews::UpdateWindowMinMaxSize() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698