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

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

Issue 2819086: Removal of TabContentsDelegate::GetBrowser() interface method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | 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/views/app_launcher.h" 5 #include "chrome/browser/views/app_launcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 info_bubble_content_->GetBubbleTabContents()->set_delegate(NULL); 381 info_bubble_content_->GetBubbleTabContents()->set_delegate(NULL);
382 MessageLoop::current()->PostTask(FROM_HERE, 382 MessageLoop::current()->PostTask(FROM_HERE,
383 new DeleteTask<AppLauncher>(this)); 383 new DeleteTask<AppLauncher>(this));
384 } 384 }
385 385
386 void AppLauncher::AddTabWithURL(const GURL& url, 386 void AppLauncher::AddTabWithURL(const GURL& url,
387 PageTransition::Type transition) { 387 PageTransition::Type transition) {
388 browser_->AddTabWithURL( 388 browser_->AddTabWithURL(
389 url, GURL(), transition, -1, 389 url, GURL(), transition, -1,
390 TabStripModel::ADD_SELECTED | TabStripModel::ADD_FORCE_INDEX, NULL, 390 TabStripModel::ADD_SELECTED | TabStripModel::ADD_FORCE_INDEX, NULL,
391 std::string()); 391 std::string(), NULL);
392 } 392 }
393 393
394 void AppLauncher::Resize(const gfx::Size& contents_size) { 394 void AppLauncher::Resize(const gfx::Size& contents_size) {
395 info_bubble_content_->ComputePreferredSize(contents_size); 395 info_bubble_content_->ComputePreferredSize(contents_size);
396 info_bubble_->SizeToContents(); 396 info_bubble_->SizeToContents();
397 } 397 }
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_manager.cc ('k') | chrome/browser/views/find_bar_host_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698