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

Side by Side Diff: chrome/browser/gtk/bookmark_manager_gtk.cc

Issue 160288: Assorted fixes for 64-bit. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | chrome/browser/gtk/menu_gtk.cc » ('j') | chrome/browser/history/snippet.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/gtk/bookmark_manager_gtk.h" 5 #include "chrome/browser/gtk/bookmark_manager_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 PathService::Get(chrome::DIR_USER_DATA, &suggested_path); 1266 PathService::Get(chrome::DIR_USER_DATA, &suggested_path);
1267 bm->select_file_dialog_->SelectFile( 1267 bm->select_file_dialog_->SelectFile(
1268 SelectFileDialog::SELECT_SAVEAS_FILE, string16(), 1268 SelectFileDialog::SELECT_SAVEAS_FILE, string16(),
1269 suggested_path.Append("bookmarks.html"), &file_type_info, 0, 1269 suggested_path.Append("bookmarks.html"), &file_type_info, 0,
1270 "html", GTK_WINDOW(bm->window_), 1270 "html", GTK_WINDOW(bm->window_),
1271 reinterpret_cast<void*>(IDS_BOOKMARK_MANAGER_EXPORT_MENU)); 1271 reinterpret_cast<void*>(IDS_BOOKMARK_MANAGER_EXPORT_MENU));
1272 } 1272 }
1273 1273
1274 void BookmarkManagerGtk::FileSelected(const FilePath& path, 1274 void BookmarkManagerGtk::FileSelected(const FilePath& path,
1275 int index, void* params) { 1275 int index, void* params) {
1276 int id = reinterpret_cast<int>(params); 1276 int id = reinterpret_cast<intptr_t>(params);
1277 if (id == IDS_BOOKMARK_MANAGER_IMPORT_MENU) { 1277 if (id == IDS_BOOKMARK_MANAGER_IMPORT_MENU) {
1278 // ImporterHost is ref counted and will delete itself when done. 1278 // ImporterHost is ref counted and will delete itself when done.
1279 ImporterHost* host = new ImporterHost(); 1279 ImporterHost* host = new ImporterHost();
1280 ProfileInfo profile_info; 1280 ProfileInfo profile_info;
1281 profile_info.browser_type = BOOKMARKS_HTML; 1281 profile_info.browser_type = BOOKMARKS_HTML;
1282 profile_info.source_path = path.ToWStringHack(); 1282 profile_info.source_path = path.ToWStringHack();
1283 StartImportingWithUI(GTK_WINDOW(window_), FAVORITES, host, 1283 StartImportingWithUI(GTK_WINDOW(window_), FAVORITES, host,
1284 profile_info, profile_, 1284 profile_info, profile_,
1285 new ImportObserverImpl(profile()), false); 1285 new ImportObserverImpl(profile()), false);
1286 } else if (id == IDS_BOOKMARK_MANAGER_EXPORT_MENU) { 1286 } else if (id == IDS_BOOKMARK_MANAGER_EXPORT_MENU) {
1287 if (g_browser_process->io_thread()) { 1287 if (g_browser_process->io_thread()) {
1288 bookmark_html_writer::WriteBookmarks( 1288 bookmark_html_writer::WriteBookmarks(
1289 g_browser_process->io_thread()->message_loop(), model_, 1289 g_browser_process->io_thread()->message_loop(), model_,
1290 path.ToWStringHack()); 1290 path.ToWStringHack());
1291 } 1291 }
1292 } else { 1292 } else {
1293 NOTREACHED(); 1293 NOTREACHED();
1294 } 1294 }
1295 } 1295 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/menu_gtk.cc » ('j') | chrome/browser/history/snippet.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698