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

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

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 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 // in a different browser. Make sure it is visible. 207 // in a different browser. Make sure it is visible.
208 browser->window()->Show(); 208 browser->window()->Show();
209 } 209 }
210 210
211 // Shows a warning message box saying that the file could not be opened. 211 // Shows a warning message box saying that the file could not be opened.
212 void ShowWarningMessageBox(Profile* profile, const FilePath& path) { 212 void ShowWarningMessageBox(Profile* profile, const FilePath& path) {
213 // TODO: if FindOrCreateTabbedBrowser creates a new browser the returned 213 // TODO: if FindOrCreateTabbedBrowser creates a new browser the returned
214 // browser is leaked. 214 // browser is leaked.
215 Browser* browser = browser::FindOrCreateTabbedBrowser(profile); 215 Browser* browser = browser::FindOrCreateTabbedBrowser(profile);
216 browser::ShowMessageBox( 216 browser::ShowMessageBox(
217 browser->window()->GetNativeHandle(), 217 browser->window()->GetNativeWindow(),
218 l10n_util::GetStringFUTF16( 218 l10n_util::GetStringFUTF16(
219 IDS_FILE_BROWSER_ERROR_VIEWING_FILE_TITLE, 219 IDS_FILE_BROWSER_ERROR_VIEWING_FILE_TITLE,
220 UTF8ToUTF16(path.BaseName().value())), 220 UTF8ToUTF16(path.BaseName().value())),
221 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_VIEWING_FILE), 221 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_VIEWING_FILE),
222 browser::MESSAGE_BOX_TYPE_WARNING); 222 browser::MESSAGE_BOX_TYPE_WARNING);
223 } 223 }
224 224
225 // Called when a file on GData was found. Opens the file found at |file_path| 225 // Called when a file on GData was found. Opens the file found at |file_path|
226 // in a new tab with a URL computed based on the |file_type| 226 // in a new tab with a URL computed based on the |file_type|
227 void OnGDataFileFound(Profile* profile, 227 void OnGDataFileFound(Profile* profile,
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 GDataOperationRegistry::ProgressStatus>::const_iterator iter = 723 GDataOperationRegistry::ProgressStatus>::const_iterator iter =
724 list.begin(); 724 list.begin();
725 iter != list.end(); ++iter) { 725 iter != list.end(); ++iter) {
726 result_list->Append( 726 result_list->Append(
727 ProgessStatusToDictionaryValue(profile, origin_url, *iter)); 727 ProgessStatusToDictionaryValue(profile, origin_url, *iter));
728 } 728 }
729 return result_list.release(); 729 return result_list.release();
730 } 730 }
731 731
732 } // namespace file_manager_util 732 } // namespace file_manager_util
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_handler_api.cc ('k') | chrome/browser/chromeos/options/network_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698