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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 113925: Linux: work around the fact that the download dialog has not been ported.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 return; // The user clicked create on a separate page. Ignore this. 2285 return; // The user clicked create on a separate page. Ignore this.
2286 2286
2287 pending_install_.callback_functor = 2287 pending_install_.callback_functor =
2288 new GearsCreateShortcutCallbackFunctor(this); 2288 new GearsCreateShortcutCallbackFunctor(this);
2289 GearsCreateShortcut( 2289 GearsCreateShortcut(
2290 info, pending_install_.title, pending_install_.url, pending_install_.icon, 2290 info, pending_install_.title, pending_install_.url, pending_install_.icon,
2291 NewCallback(pending_install_.callback_functor, 2291 NewCallback(pending_install_.callback_functor,
2292 &GearsCreateShortcutCallbackFunctor::Run)); 2292 &GearsCreateShortcutCallbackFunctor::Run));
2293 } 2293 }
2294 2294
2295 void TabContents::OnEnterOrSpace() { 2295 void TabContents::OnUserGesture() {
2296 // See comment in RenderViewHostDelegate::OnEnterOrSpace as to why we do this. 2296 // See comment in RenderViewHostDelegate::OnUserGesture as to why we do this.
2297 #if defined(OS_WIN) 2297 #if defined(OS_WIN) || defined(OS_LINUX)
2298 // TODO(port): this is stubbed in BrowserProcess
2299 DownloadRequestManager* drm = g_browser_process->download_request_manager(); 2298 DownloadRequestManager* drm = g_browser_process->download_request_manager();
2300 if (drm) 2299 if (drm)
2301 drm->OnUserGesture(this); 2300 drm->OnUserGesture(this);
2302 #endif 2301 #endif
2303 } 2302 }
2304 2303
2305 void TabContents::OnFindReply(int request_id, 2304 void TabContents::OnFindReply(int request_id,
2306 int number_of_matches, 2305 int number_of_matches,
2307 const gfx::Rect& selection_rect, 2306 const gfx::Rect& selection_rect,
2308 int active_match_ordinal, 2307 int active_match_ordinal,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 NavigationController::LoadCommittedDetails& committed_details = 2437 NavigationController::LoadCommittedDetails& committed_details =
2439 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); 2438 *(Details<NavigationController::LoadCommittedDetails>(details).ptr());
2440 ExpireInfoBars(committed_details); 2439 ExpireInfoBars(committed_details);
2441 break; 2440 break;
2442 } 2441 }
2443 2442
2444 default: 2443 default:
2445 NOTREACHED(); 2444 NOTREACHED();
2446 } 2445 }
2447 } 2446 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tab_contents/tab_contents_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698