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

Side by Side Diff: chrome/browser/chromeos/app_launcher.cc

Issue 1037008: Retry r41799:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/app_launcher.h" 5 #include "chrome/browser/chromeos/app_launcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/gfx/canvas.h" 10 #include "app/gfx/canvas.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 bool user_gesture) { 463 bool user_gesture) {
464 if (disposition == NEW_POPUP) { 464 if (disposition == NEW_POPUP) {
465 pending_contents_->set_delegate(NULL); 465 pending_contents_->set_delegate(NULL);
466 browser_->GetSelectedTabContents()->AddNewContents( 466 browser_->GetSelectedTabContents()->AddNewContents(
467 pending_contents_.release(), disposition, initial_pos, user_gesture); 467 pending_contents_.release(), disposition, initial_pos, user_gesture);
468 Hide(); 468 Hide();
469 } 469 }
470 } 470 }
471 471
472 void AppLauncher::StartDragging(const WebDropData& drop_data, 472 void AppLauncher::StartDragging(const WebDropData& drop_data,
473 WebKit::WebDragOperationsMask allowed_ops) { 473 WebKit::WebDragOperationsMask allowed_ops,
474 const SkBitmap& image,
475 const gfx::Point& image_offset) {
474 // We're not going to do any drag & drop, but we have to tell the renderer the 476 // We're not going to do any drag & drop, but we have to tell the renderer the
475 // drag & drop ended, othewise the renderer thinks the drag operation is 477 // drag & drop ended, othewise the renderer thinks the drag operation is
476 // underway and mouse events won't work. 478 // underway and mouse events won't work.
477 contents_rvh_->DragSourceSystemDragEnded(); 479 contents_rvh_->DragSourceSystemDragEnded();
478 } 480 }
479 481
480 AppLauncher::TabContentsDelegateImpl::TabContentsDelegateImpl( 482 AppLauncher::TabContentsDelegateImpl::TabContentsDelegateImpl(
481 AppLauncher* app_launcher) 483 AppLauncher* app_launcher)
482 : app_launcher_(app_launcher) { 484 : app_launcher_(app_launcher) {
483 } 485 }
484 486
485 void AppLauncher::TabContentsDelegateImpl::OpenURLFromTab( 487 void AppLauncher::TabContentsDelegateImpl::OpenURLFromTab(
486 TabContents* source, 488 TabContents* source,
487 const GURL& url, 489 const GURL& url,
488 const GURL& referrer, 490 const GURL& referrer,
489 WindowOpenDisposition disposition, 491 WindowOpenDisposition disposition,
490 PageTransition::Type transition) { 492 PageTransition::Type transition) {
491 app_launcher_->browser_->OpenURL(url, referrer, NEW_FOREGROUND_TAB, 493 app_launcher_->browser_->OpenURL(url, referrer, NEW_FOREGROUND_TAB,
492 PageTransition::LINK); 494 PageTransition::LINK);
493 app_launcher_->Hide(); 495 app_launcher_->Hide();
494 } 496 }
495 497
496 } // namespace chromeos 498 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698