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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager_util.cc

Issue 10689095: browser: Put simple_message_box.h and chrome_web_contents_view_delegate.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 #include "chrome/browser/chromeos/extensions/file_manager_util.h" 4 #include "chrome/browser/chromeos/extensions/file_manager_util.h"
5 5
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // If the current browser is not tabbed then the new tab will be created 207 // If the current browser is not tabbed then the new tab will be created
208 // in a different browser. Make sure it is visible. 208 // in a different browser. Make sure it is visible.
209 browser->window()->Show(); 209 browser->window()->Show();
210 } 210 }
211 211
212 // Shows a warning message box saying that the file could not be opened. 212 // Shows a warning message box saying that the file could not be opened.
213 void ShowWarningMessageBox(Profile* profile, const FilePath& path) { 213 void ShowWarningMessageBox(Profile* profile, const FilePath& path) {
214 // TODO: if FindOrCreateTabbedBrowser creates a new browser the returned 214 // TODO: if FindOrCreateTabbedBrowser creates a new browser the returned
215 // browser is leaked. 215 // browser is leaked.
216 Browser* browser = browser::FindOrCreateTabbedBrowser(profile); 216 Browser* browser = browser::FindOrCreateTabbedBrowser(profile);
217 browser::ShowMessageBox( 217 chrome::ShowMessageBox(
218 browser->window()->GetNativeWindow(), 218 browser->window()->GetNativeWindow(),
219 l10n_util::GetStringFUTF16( 219 l10n_util::GetStringFUTF16(
220 IDS_FILE_BROWSER_ERROR_VIEWING_FILE_TITLE, 220 IDS_FILE_BROWSER_ERROR_VIEWING_FILE_TITLE,
221 UTF8ToUTF16(path.BaseName().value())), 221 UTF8ToUTF16(path.BaseName().value())),
222 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_VIEWING_FILE), 222 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_VIEWING_FILE),
223 browser::MESSAGE_BOX_TYPE_WARNING); 223 chrome::MESSAGE_BOX_TYPE_WARNING);
224 } 224 }
225 225
226 // Called when a file on GData was found. Opens the file found at |file_path| 226 // Called when a file on GData was found. Opens the file found at |file_path|
227 // in a new tab with a URL computed based on the |file_type| 227 // in a new tab with a URL computed based on the |file_type|
228 void OnGDataFileFound(Profile* profile, 228 void OnGDataFileFound(Profile* profile,
229 const FilePath& file_path, 229 const FilePath& file_path,
230 gdata::GDataFileType file_type, 230 gdata::GDataFileType file_type,
231 base::PlatformFileError error, 231 base::PlatformFileError error,
232 scoped_ptr<gdata::GDataFileProto> file_proto) { 232 scoped_ptr<gdata::GDataFileProto> file_proto) {
233 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 233 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 GDataOperationRegistry::ProgressStatus>::const_iterator iter = 705 GDataOperationRegistry::ProgressStatus>::const_iterator iter =
706 list.begin(); 706 list.begin();
707 iter != list.end(); ++iter) { 707 iter != list.end(); ++iter) {
708 result_list->Append( 708 result_list->Append(
709 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); 709 ProgessStatusToDictionaryValue(profile, origin_url, *iter));
710 } 710 }
711 return result_list.release(); 711 return result_list.release();
712 } 712 }
713 713
714 } // namespace file_manager_util 714 } // namespace file_manager_util
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/extensions/extension_error_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698