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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_handler_api.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 4
5 #include "chrome/browser/chromeos/extensions/file_browser_handler_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_handler_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 TabContentsWrapper* tab_contents = browser->GetSelectedTabContentsWrapper(); 109 TabContentsWrapper* tab_contents = browser->GetSelectedTabContentsWrapper();
110 if (!tab_contents) 110 if (!tab_contents)
111 return false; 111 return false;
112 112
113 dialog_ = SelectFileDialog::Create(this); 113 dialog_ = SelectFileDialog::Create(this);
114 dialog_->SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE, 114 dialog_->SelectFile(SelectFileDialog::SELECT_SAVEAS_FILE,
115 string16() /* dialog title*/, suggested_name, 115 string16() /* dialog title*/, suggested_name,
116 NULL /* allowed file types */, 0 /* file type index */, 116 NULL /* allowed file types */, 0 /* file type index */,
117 std::string() /* default file extension */, tab_contents->web_contents(), 117 std::string() /* default file extension */, tab_contents->web_contents(),
118 browser->window()->GetNativeHandle(), NULL /* params */); 118 browser->window()->GetNativeWindow(), NULL /* params */);
119 119
120 return dialog_->IsRunning(browser->window()->GetNativeHandle()); 120 return dialog_->IsRunning(browser->window()->GetNativeWindow());
121 } 121 }
122 122
123 void FileSelectorImpl::FileSelected( 123 void FileSelectorImpl::FileSelected(
124 const FilePath& path, int index, void* params) { 124 const FilePath& path, int index, void* params) {
125 SendResponse(true, path); 125 SendResponse(true, path);
126 delete this; 126 delete this;
127 } 127 }
128 128
129 void FileSelectorImpl::MultiFilesSelected( 129 void FileSelectorImpl::MultiFilesSelected(
130 const std::vector<FilePath>& files, 130 const std::vector<FilePath>& files,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 scoped_ptr<SelectFile::Result::Result> result( 261 scoped_ptr<SelectFile::Result::Result> result(
262 new SelectFile::Result::Result()); 262 new SelectFile::Result::Result());
263 result->success = success; 263 result->success = success;
264 result->file_url = file_url.spec(); 264 result->file_url = file_url.spec();
265 265
266 result_.reset(SelectFile::Result::Create(*result)); 266 result_.reset(SelectFile::Result::Create(*result));
267 SendResponse(true); 267 SendResponse(true);
268 } 268 }
269 269
OLDNEW
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/browser/chromeos/extensions/file_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698